Hi I'm programming a listener that based on the key pressed by the user, must act in a certain manner.
I need to be able to determine if a user press the 'i' key or 'm' key. Actually I'm doing it like:
// If pressed the 'i' key
if ( evt.getKeyCode() == 73) {
//
}
...
I look out here and with the sample applet determine that the i key is recognized as a 73 code.
That works.
But I'm working at Mac OS X, and I don't know if once I try to run this app on another OS or just JVM, It won't work.
Is the 73 a universal key code? Is there a certain way to program this so it can run and determine the key pressed, on windows.
Thank you!