Add missing enums

This commit is contained in:
Phillip Stephens 2022-02-19 16:27:11 -08:00
parent 8863003855
commit f4c27c6ac6
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 6 additions and 0 deletions

View File

@ -76,18 +76,24 @@ ControllerButton translate_button(SDL_GameControllerButton btn) {
return ControllerButton::Back; return ControllerButton::Back;
case SDL_CONTROLLER_BUTTON_GUIDE: case SDL_CONTROLLER_BUTTON_GUIDE:
return ControllerButton::Guide; return ControllerButton::Guide;
case SDL_CONTROLLER_BUTTON_START:
return ControllerButton::Start;
case SDL_CONTROLLER_BUTTON_LEFTSTICK: case SDL_CONTROLLER_BUTTON_LEFTSTICK:
return ControllerButton::LeftStick; return ControllerButton::LeftStick;
case SDL_CONTROLLER_BUTTON_RIGHTSTICK: case SDL_CONTROLLER_BUTTON_RIGHTSTICK:
return ControllerButton::RightStick; return ControllerButton::RightStick;
case SDL_CONTROLLER_BUTTON_LEFTSHOULDER: case SDL_CONTROLLER_BUTTON_LEFTSHOULDER:
return ControllerButton::LeftShoulder; return ControllerButton::LeftShoulder;
case SDL_CONTROLLER_BUTTON_RIGHTSHOULDER:
return ControllerButton::RightShoulder;
case SDL_CONTROLLER_BUTTON_DPAD_UP: case SDL_CONTROLLER_BUTTON_DPAD_UP:
return ControllerButton::DPadUp; return ControllerButton::DPadUp;
case SDL_CONTROLLER_BUTTON_DPAD_DOWN: case SDL_CONTROLLER_BUTTON_DPAD_DOWN:
return ControllerButton::DPadDown; return ControllerButton::DPadDown;
case SDL_CONTROLLER_BUTTON_DPAD_RIGHT: case SDL_CONTROLLER_BUTTON_DPAD_RIGHT:
return ControllerButton::DPadRight; return ControllerButton::DPadRight;
case SDL_CONTROLLER_BUTTON_DPAD_LEFT:
return ControllerButton::DPadLeft;
default: default:
return ControllerButton::Other; return ControllerButton::Other;
} }