From 9fe98f8abe83d63ac4231e8fee156f9643018157 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 17 Jun 2018 19:30:49 +0200 Subject: [PATCH] Add more button defines to the VPAD input.h --- include/vpad/input.h | 46 ++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/include/vpad/input.h b/include/vpad/input.h index 888abb9..7574e66 100644 --- a/include/vpad/input.h +++ b/include/vpad/input.h @@ -20,25 +20,33 @@ typedef struct VPADStatus VPADStatus; typedef enum VPADButtons { - VPAD_BUTTON_A = 0x8000, - VPAD_BUTTON_B = 0x4000, - VPAD_BUTTON_X = 0x2000, - VPAD_BUTTON_Y = 0x1000, - VPAD_BUTTON_LEFT = 0x0800, - VPAD_BUTTON_RIGHT = 0x0400, - VPAD_BUTTON_UP = 0x0200, - VPAD_BUTTON_DOWN = 0x0100, - VPAD_BUTTON_ZL = 0x0080, - VPAD_BUTTON_ZR = 0x0040, - VPAD_BUTTON_L = 0x0020, - VPAD_BUTTON_R = 0x0010, - VPAD_BUTTON_PLUS = 0x0008, - VPAD_BUTTON_MINUS = 0x0004, - VPAD_BUTTON_HOME = 0x0002, - VPAD_BUTTON_SYNC = 0x0001, - VPAD_BUTTON_STICK_R = 0x00020000, - VPAD_BUTTON_STICK_L = 0x00040000, - VPAD_BUTTON_TV = 0x00010000, + VPAD_BUTTON_A = 0x8000, + VPAD_BUTTON_B = 0x4000, + VPAD_BUTTON_X = 0x2000, + VPAD_BUTTON_Y = 0x1000, + VPAD_BUTTON_LEFT = 0x0800, + VPAD_BUTTON_RIGHT = 0x0400, + VPAD_BUTTON_UP = 0x0200, + VPAD_BUTTON_DOWN = 0x0100, + VPAD_BUTTON_ZL = 0x0080, + VPAD_BUTTON_ZR = 0x0040, + VPAD_BUTTON_L = 0x0020, + VPAD_BUTTON_R = 0x0010, + VPAD_BUTTON_PLUS = 0x0008, + VPAD_BUTTON_MINUS = 0x0004, + VPAD_BUTTON_HOME = 0x0002, + VPAD_BUTTON_SYNC = 0x0001, + VPAD_BUTTON_STICK_R = 0x00020000, + VPAD_BUTTON_STICK_L = 0x00040000, + VPAD_BUTTON_TV = 0x00010000, + VPAD_STICK_R_EMULATION_LEFT = 0x04000000, + VPAD_STICK_R_EMULATION_RIGHT = 0x02000000, + VPAD_STICK_R_EMULATION_UP = 0x01000000, + VPAD_STICK_R_EMULATION_DOWN = 0x00800000, + VPAD_STICK_L_EMULATION_LEFT = 0x40000000, + VPAD_STICK_L_EMULATION_RIGHT = 0x20000000, + VPAD_STICK_L_EMULATION_UP = 0x10000000, + VPAD_STICK_L_EMULATION_DOWN = 0x08000000, } VPADButtons; typedef enum VPADTouchPadValidity