Hi!
I have implemented the EventListenerKeyboard to receive the pressed and released Keys of my GPD XD Test device.
I have checked all the sent KeyCodes and found out, that different Keys are sending same KeyCode.
So, I am not sure how to differenciate between the pressed keys in my game.
Can somebody please help me?
Thanks!
Here is my KeyCode list:
KeyCode - pressed button of device
KEY_DPAD_LEFT - dpad left
KEY_DPAD_RIGHT - dpad right
KEY_DPAD_UP - dpad up
KEY_DPAD_DOWN - dpad down
KEY_ESCAPE - Y button | 0x7b87eac0
KEY_ESCAPE - B button | 0x7b87eac0
KEY_ESCAPE - Back button
KEY_DPAD_CENTER - A button
KEY_DPAD_CENTER - START button
KEY_DPAD_CENTER - X button
KEY_DPAD_CENTER - R3 button
KEY_DPAD_CENTER - L3 button
KEY_MENU - Select button
Other keys of device do not throw any Key Event
I was not able to detect the DPAD and keys as a joystick.