Making Android Java application to recognize Shield buttons.

Hello to all

I developed an Android 3D game. It supports touch screen or keyboard and works pretty fast with a standard Android device (no CUDA or PhysX). I would like it to recognize also Shield buttons.

I assume Shield buttons and DPAD, just like a keyboard, generate KeyDown and KeyUp events. In this case
the only thing I need is the list of key codes (and maybe meta states) for each button. Thanks for your anticipated help.

Hello,
I hope this can be helpful

DPad Up 19
DPad Down 20
DPad Left 21
DPad Right 22

A 96/23
B 97/4
X 99
Y 100/82

L1 102
R1 103
L3 106
R3 107

Left Joystick UP/DOWN/LEFT/RIGHT and AXIS_X / AXIS_Y
Right Joystick AXIS_Z / AXIS_RZ or AXIS_X / AXIS_Y (for cursor/mouse)