Pad: Formatting

This commit is contained in:
TellowKrinkle 2021-08-14 21:45:07 -05:00 committed by tellowkrinkle
parent 0bd65614d0
commit d96b1ef525
1 changed files with 25 additions and 26 deletions

View File

@ -69,32 +69,31 @@ enum gamePadValues
}; };
static const std::array<gamePadValues, MAX_KEYS> all_keys = static const std::array<gamePadValues, MAX_KEYS> all_keys =
{ {
PAD_L2, // L2 button PAD_L2, // L2 button
PAD_R2, // R2 button PAD_R2, // R2 button
PAD_L1, // L1 button PAD_L1, // L1 button
PAD_R1, // R1 button PAD_R1, // R1 button
PAD_TRIANGLE, // Triangle button ▲ PAD_TRIANGLE, // Triangle button ▲
PAD_CIRCLE, // Circle button ● PAD_CIRCLE, // Circle button ●
PAD_CROSS, // Cross button ✖ PAD_CROSS, // Cross button ✖
PAD_SQUARE, // Square button ■ PAD_SQUARE, // Square button ■
PAD_SELECT, // Select button PAD_SELECT, // Select button
PAD_L3, // Left joystick button (L3) PAD_L3, // Left joystick button (L3)
PAD_R3, // Right joystick button (R3) PAD_R3, // Right joystick button (R3)
PAD_START, // Start button PAD_START, // Start button
PAD_UP, // Directional pad ↑ PAD_UP, // Directional pad ↑
PAD_RIGHT, // Directional pad → PAD_RIGHT, // Directional pad →
PAD_DOWN, // Directional pad ↓ PAD_DOWN, // Directional pad ↓
PAD_LEFT, // Directional pad ← PAD_LEFT, // Directional pad ←
PAD_L_UP, // Left joystick (Up) ↑ PAD_L_UP, // Left joystick (Up) ↑
PAD_L_RIGHT, // Left joystick (Right) → PAD_L_RIGHT, // Left joystick (Right) →
PAD_L_DOWN, // Left joystick (Down) ↓ PAD_L_DOWN, // Left joystick (Down) ↓
PAD_L_LEFT, // Left joystick (Left) ← PAD_L_LEFT, // Left joystick (Left) ←
PAD_R_UP, // Right joystick (Up) ↑ PAD_R_UP, // Right joystick (Up) ↑
PAD_R_RIGHT, // Right joystick (Right) → PAD_R_RIGHT, // Right joystick (Right) →
PAD_R_DOWN, // Right joystick (Down) ↓ PAD_R_DOWN, // Right joystick (Down) ↓
PAD_R_LEFT // Right joystick (Left) ← PAD_R_LEFT // Right joystick (Left) ←
}; };
static bool IsAnalogKey(int index) static bool IsAnalogKey(int index)