mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-21 06:14:11 +00:00
Fixed compile warnings
This commit is contained in:
parent
91428ceee0
commit
d80d2ad2b2
1 changed files with 5 additions and 5 deletions
|
|
@ -44,9 +44,9 @@ import java.util.HashSet;
|
||||||
final class RawInputEventQueue {
|
final class RawInputEventQueue {
|
||||||
private final Object monitor = new Object();
|
private final Object monitor = new Object();
|
||||||
|
|
||||||
private List devices;
|
private List<RawDevice> devices;
|
||||||
|
|
||||||
public final void start(List devices) throws IOException {
|
public final void start(List<RawDevice> devices) throws IOException {
|
||||||
this.devices = devices;
|
this.devices = devices;
|
||||||
QueueThread queue = new QueueThread();
|
QueueThread queue = new QueueThread();
|
||||||
synchronized (monitor) {
|
synchronized (monitor) {
|
||||||
|
|
@ -64,7 +64,7 @@ final class RawInputEventQueue {
|
||||||
|
|
||||||
private final RawDevice lookupDevice(long handle) {
|
private final RawDevice lookupDevice(long handle) {
|
||||||
for (int i = 0; i < devices.size(); i++) {
|
for (int i = 0; i < devices.size(); i++) {
|
||||||
RawDevice device = (RawDevice)devices.get(i);
|
RawDevice device = devices.get(i);
|
||||||
if (device.getHandle() == handle)
|
if (device.getHandle() == handle)
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
@ -126,10 +126,10 @@ final class RawInputEventQueue {
|
||||||
}
|
}
|
||||||
if (exception != null)
|
if (exception != null)
|
||||||
return;
|
return;
|
||||||
Set active_infos = new HashSet();
|
Set<RawDeviceInfo> active_infos = new HashSet<>();
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < devices.size(); i++) {
|
for (int i = 0; i < devices.size(); i++) {
|
||||||
RawDevice device = (RawDevice)devices.get(i);
|
RawDevice device = devices.get(i);
|
||||||
active_infos.add(device.getInfo());
|
active_infos.add(device.getInfo());
|
||||||
}
|
}
|
||||||
RawDeviceInfo[] active_infos_array = new RawDeviceInfo[active_infos.size()];
|
RawDeviceInfo[] active_infos_array = new RawDeviceInfo[active_infos.size()];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue