mirror of https://github.com/AxioDL/metaforce.git
Add missing enums
This commit is contained in:
parent
8863003855
commit
f4c27c6ac6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue