Skip to content

Commit

Permalink
Small code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-rozanski committed Jun 20, 2020
1 parent a70efff commit 75fb2c3
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions includes/vst_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
// Controller input
#define OFFSET_CONTROLLER_INPUT 0x8005E1C0

#define MASK_CONTROLLER_INPUT_SELECT 0x0100
#define MASK_CONTROLLER_INPUT_L3 0x0200
#define MASK_CONTROLLER_INPUT_R3 0x0400
#define MASK_CONTROLLER_INPUT_START 0x0800
#define MASK_CONTROLLER_INPUT_UP 0x1000
#define MASK_CONTROLLER_INPUT_RIGHT 0x2000
#define MASK_CONTROLLER_INPUT_DOWN 0x4000
#define MASK_CONTROLLER_INPUT_LEFT 0x8000
#define MASK_CONTROLLER_INPUT_L2 0x0001
#define MASK_CONTROLLER_INPUT_R2 0x0002
#define MASK_CONTROLLER_INPUT_L1 0x0004
Expand All @@ -20,43 +12,51 @@
#define MASK_CONTROLLER_INPUT_CIRCLE 0x0020
#define MASK_CONTROLLER_INPUT_CROSS 0x0040
#define MASK_CONTROLLER_INPUT_SQUARE 0x0080
#define MASK_CONTROLLER_INPUT_SELECT 0x0100
#define MASK_CONTROLLER_INPUT_L3 0x0200
#define MASK_CONTROLLER_INPUT_R3 0x0400
#define MASK_CONTROLLER_INPUT_START 0x0800
#define MASK_CONTROLLER_INPUT_UP 0x1000
#define MASK_CONTROLLER_INPUT_RIGHT 0x2000
#define MASK_CONTROLLER_INPUT_DOWN 0x4000
#define MASK_CONTROLLER_INPUT_LEFT 0x8000

char *ControllerInputNames[16] = { //
"Select", //
"L3", //
"R3", //
"Start", //
"Up", //
"Right", //
"Down", //
"Left", //
"L2", //
"R2", //
"L1", //
"R1", //
"Triangle", //
"Circle", //
"Cross", //
"Square"
"Square", //
"Select", //
"L3", //
"R3", //
"Start", //
"Up", //
"Right", //
"Down", //
"Left"
};

u16 ControllerInputMasks[16] = { //
MASK_CONTROLLER_INPUT_L2, //
MASK_CONTROLLER_INPUT_R2, //
MASK_CONTROLLER_INPUT_L1, //
MASK_CONTROLLER_INPUT_R1, //
MASK_CONTROLLER_INPUT_TRIANGLE, //
MASK_CONTROLLER_INPUT_CIRCLE, //
MASK_CONTROLLER_INPUT_CROSS, //
MASK_CONTROLLER_INPUT_SQUARE, //
MASK_CONTROLLER_INPUT_SELECT, //
MASK_CONTROLLER_INPUT_L3, //
MASK_CONTROLLER_INPUT_R3, //
MASK_CONTROLLER_INPUT_START,
MASK_CONTROLLER_INPUT_UP, //
MASK_CONTROLLER_INPUT_RIGHT,
MASK_CONTROLLER_INPUT_DOWN, //
MASK_CONTROLLER_INPUT_LEFT,
MASK_CONTROLLER_INPUT_L2, //
MASK_CONTROLLER_INPUT_R2, //
MASK_CONTROLLER_INPUT_L1, //
MASK_CONTROLLER_INPUT_R1, //
MASK_CONTROLLER_INPUT_TRIANGLE,
MASK_CONTROLLER_INPUT_CIRCLE, //
MASK_CONTROLLER_INPUT_CROSS, //
MASK_CONTROLLER_INPUT_SQUARE
MASK_CONTROLLER_INPUT_LEFT
};

void
Expand Down

0 comments on commit 75fb2c3

Please sign in to comment.