Okay, I know how to catch usual lowercase letters. I’m using KeyboardEvent.KEY_DOWN and compare the code to the ASCII table to find out which key was pressed. Now, I also want to be able to find out if there is, for example SHIFT+A pressed, and I have no idea how to implement this. I mean, in my program SHIFT and A are absolutely different keys which have nothing to do with each other, and they both will call KeyboardEvents when pressed. In Georgian alphabet some letters are typed by combination of SHIFT and English letters, for example W on Georgian keyboard means წ, when SIFT+W means ჭ. Absolutely different letters, as you can see. And I want to be able to catch both, coz I’m currently developing Georgian-language game. Any help will be appreciated. Thanks in advance 🙂
Okay, I know how to catch usual lowercase letters. I’m using KeyboardEvent.KEY_DOWN and compare
Share
Take a look at the KeyEvent class. It provides you with the infos on if the shift key was pressed or not. Look at this example:
This is an example output:
As you can see the combination of KeyboardEvent.keyCode and KeyboardEvent.shiftKey hold the information which you are looking for.