Now, I am studying about LWJGL.
And I wrote the sample code noted below.
while (Keyboard.next()) {
if (Keyboard.getEventKeyState()) {
if (Keyboard.getEventKey() == Keyboard.KEY_A) {
....
}
}
}
Now I have some questions.
Questin1:
I want to convert the return value of
getEventKey() into the ASCII code, directly.
Are there the function converting
org.lwjgl.input Keyboard.KEY_A,
org.lwjgl.input Keyboard.KEY_B etc into ASCII code?
If I need the function noted above, should I make the function by myself?
If you know the function, please tell me.
Questin2:
Why is the value of
org.lwjgl.input Keyboard.KEY_A not same as the value of ASCII code of "A".
If you know the background, please tell me.
-----
P.S
I use the forum , this time is first.
Is my usage valid?
