mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-06 00:40:01 +01:00
Fixed my debug
This commit is contained in:
parent
67bcd5f43e
commit
3b9688b972
|
|
@ -148,8 +148,8 @@ class DirectInputAxis extends AbstractComponent {
|
|||
int data = 0;
|
||||
try {
|
||||
data = ((device.data[offset] >> bitshift)&bitmask);
|
||||
} catch (ArrayIndexOutOfBoundsException) {
|
||||
System.out.println("Tried to get data for axis: " + this.getName() + ", device.data[" + offset + "] does not exists as device.data is only " + device.data.length + " long.")
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
System.out.println("Tried to get data for axis: " + this.getName() + ", device.data[" + offset + "] does not exists as device.data is only " + device.data.length + " long.");
|
||||
}
|
||||
if ((type&DIDFT_BUTTON) != 0 ) {
|
||||
return (float)((data&0x80)>>7);
|
||||
|
|
|
|||
Loading…
Reference in a new issue