Wii U Button Codes

Gamepad:
Button Code
Sync 0x00000001
Power 0x00000002
- button 0x00000004
+ button 0x00000008
R button 0x00000010
L button 0x00000020
ZR button 0x00000040
ZL button 0x00000080
DPad - DOWN 0x00000100
DPad - UP 0x00000200
DPad - RIGHT 0x00000400
DPad - LEFT 0x00000800
Y button 0x00001000
X button 0x00002000
B button 0x00004000
A button 0x00008000
TV button 0x00010000
RStick button 0x00020000
LStick button 0x00040000
RStick - DOWN 0x00800000
RStick - UP 0x01000000
RStick - RIGHT 0x02000000
RStick - LEFT 0x04000000
LStick - DOWN 0x08000000
LStick - UP 0x10000000
LStick - RIGHT 0x20000000
LStick - LEFT 0x40000000