diff options
author | Xerxes Rånby <[email protected]> | 2013-04-11 15:06:31 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2013-04-11 15:06:31 +0200 |
commit | 67500d28f6e3507679a231e483fb369f29fb49e8 (patch) | |
tree | f044ed7cf1d9affbe379bba12046b48d75fba8ef /src/jake2/sys/NEWTKBD.java | |
parent | 311f9510bb2f41c97c1600b4f170f3551d8095ca (diff) |
NEWTKBD: handle JogAmp 2.0.2 NEWT API changes.
Use MouseEvent getRotation
JogAmp jogl: ded080fd890c21b54ba1f96d84f9e355711dc88a
Use UTF-16 UniCode VK key names
JogAmp jogl: b13868b612689307ebf4e46ee4ede2fd0560e504
Singed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/jake2/sys/NEWTKBD.java')
-rw-r--r-- | src/jake2/sys/NEWTKBD.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jake2/sys/NEWTKBD.java b/src/jake2/sys/NEWTKBD.java index abf0988..594fee3 100644 --- a/src/jake2/sys/NEWTKBD.java +++ b/src/jake2/sys/NEWTKBD.java @@ -73,7 +73,7 @@ final public class NEWTKBD extends KBD break; case Jake2InputEvent.WheelMoved: - int dir = ((MouseEvent)event.ev).getWheelRotation(); + float dir = ((MouseEvent)event.ev).getRotation()[0]; if (dir > 0) { Do_Key_Event(Key.K_MWHEELDOWN, true); Do_Key_Event(Key.K_MWHEELDOWN, false); @@ -183,9 +183,8 @@ final public class NEWTKBD extends KBD // 00701 case KeyEvent.VK_INSERT: key = Key.K_INS; break; // toggle console for DE and US keyboards - case KeyEvent.VK_DEAD_ACUTE: + case KeyEvent.VK_QUOTE: case KeyEvent.VK_CIRCUMFLEX: - case KeyEvent.VK_DEAD_CIRCUMFLEX: case KeyEvent.VK_BACK_QUOTE: key='`'; break; case KeyEvent.VK_SPACE: key = Key.K_SPACE; break; |