Start using Rml::PropertyId/Property instead of strings

This commit is contained in:
Luke Street
2026-04-28 00:18:52 -06:00
parent 6503b4e7eb
commit ff78bc8d6c
22 changed files with 787 additions and 601 deletions
+2 -2
View File
@@ -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;