mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-24 05:46:51 -04:00
Start using Rml::PropertyId/Property instead of strings
This commit is contained in:
+2
-2
@@ -89,8 +89,8 @@ Rml::Input::KeyIdentifier key_from_gamepad_button(Uint8 button) {
|
||||
}
|
||||
}
|
||||
|
||||
Rml::Input::KeyIdentifier key_from_gamepad_axis(const SDL_GamepadAxisEvent& event,
|
||||
float axisValue) {
|
||||
Rml::Input::KeyIdentifier key_from_gamepad_axis(
|
||||
const SDL_GamepadAxisEvent& event, float axisValue) {
|
||||
switch (event.axis) {
|
||||
case SDL_GAMEPAD_AXIS_LEFTX:
|
||||
return axisValue < 0.0f ? Rml::Input::KI_LEFT : Rml::Input::KI_RIGHT;
|
||||
|
||||
Reference in New Issue
Block a user