diff options
author | endolf <[email protected]> | 2005-09-01 20:37:01 +0000 |
---|---|---|
committer | endolf <[email protected]> | 2005-09-01 20:37:01 +0000 |
commit | a25f205e163ebf7009d8076cfe063b260881c9e3 (patch) | |
tree | d4596de2d948697991784d650608d884c1f27c12 | |
parent | 896c5f7e9e7825d4e60f7df2ce4d7c83e5172903 (diff) |
Fixed my debug
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@125 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r-- | plugins/DX8/src/java/net/java/games/input/DirectInputAxis.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DX8/src/java/net/java/games/input/DirectInputAxis.java b/plugins/DX8/src/java/net/java/games/input/DirectInputAxis.java index 58299b7..cdc9267 100644 --- a/plugins/DX8/src/java/net/java/games/input/DirectInputAxis.java +++ b/plugins/DX8/src/java/net/java/games/input/DirectInputAxis.java @@ -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); |