Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Extension to keyboard input in SWT

Hi
 
I have noticed that currently it is not possible to inspect a keyboard state in SWT. I am writing a game and initially i have tried to use the KeyListener to interpret user input. However this is unreliable when multiple keys are pressed.
 
If i am correct, it would be possible to write JNI interface for windows, to use window API functions such as GetKeyboardState() and GetKeyState() to do what i need. I assume this could be similarly done for the other supported platforms. So a new keyboard user interface component could be added to SWT.
 
What do u think?
 
Martin.

--
Dr Martin Bosticky
MXBDesigns

Back to the top