Use GamepadAxis enum for getGamepadAxisMovement instead of c_int (#187)

* Updated getGamepadAxisMovement to take enum and cast return to f32

* Updated raylib-ext.zig GetGamepadAxisMovement to take enum

* modified generate_functions.py to make changes instead
This commit is contained in:
James Davis 2025-01-10 13:18:45 -05:00 committed by GitHub
parent 561481f4ae
commit 30ce68004f
Failed to generate hash of commit
3 changed files with 4 additions and 3 deletions

View file

@ -173,6 +173,7 @@ _fix_enums_data = [
("flag", "ConfigFlags", r"IsWindowState"),
("flags", "Gesture", r"SetGesturesEnabled"),
("button", "GamepadButton", r".*GamepadButton.*"),
("axis", "GamepadAxis", r".*GamepadAxis.*"),
("button", "MouseButton", r".*MouseButton.*"),
("control", "GuiControl", r"Gui.etStyle"),
# ("property", "GuiControlProperty", r"Gui.etStyle"),