-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
5.0
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
So I propose to add a function like this: boolean getKeyState(int key)
so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.
JUSTIFICATION :
It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
So I propose to add a function like this: boolean getKeyState(int key)
so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.
ACTUAL -
no possibility to get a keyState
It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
So I propose to add a function like this: boolean getKeyState(int key)
so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.
JUSTIFICATION :
It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
So I propose to add a function like this: boolean getKeyState(int key)
so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.
ACTUAL -
no possibility to get a keyState
- relates to
-
JDK-4083501 Need Input Polling for Games (keyboard, etc)
-
- Open
-