Commit aba6343b authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: add user-friendly names for the rest of the controller buttons exposed by SDL 2.0.14

parent c974c5cf
......@@ -1158,6 +1158,12 @@ const char *joyGetName(int32_t what, int32_t num)
"D-Pad Down",
"D-Pad Left",
"D-Pad Right",
"Misc",
"Paddle 1",
"Paddle 2",
"Paddle 3",
"Paddle 4",
"Touchpad",
NULL
};
......
......@@ -145,6 +145,11 @@ enum GameControllerButton : int
GAMECONTROLLER_BUTTON_DPAD_DOWN,
GAMECONTROLLER_BUTTON_DPAD_LEFT,
GAMECONTROLLER_BUTTON_DPAD_RIGHT,
GAMECONTROLLER_BUTTON_MISC,
GAMECONTROLLER_BUTTON_PADDLE1,
GAMECONTROLLER_BUTTON_PADDLE2,
GAMECONTROLLER_BUTTON_PADDLE3,
GAMECONTROLLER_BUTTON_PADDLE4,
GAMECONTROLLER_BUTTON_MAX
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment