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:
parent
561481f4ae
commit
30ce68004f
3 changed files with 4 additions and 3 deletions
|
|
@ -3169,8 +3169,8 @@ pub fn getGamepadAxisCount(gamepad: i32) i32 {
|
|||
}
|
||||
|
||||
/// Get axis movement value for a gamepad axis
|
||||
pub fn getGamepadAxisMovement(gamepad: i32, axis: i32) f32 {
|
||||
return cdef.GetGamepadAxisMovement(@as(c_int, gamepad), @as(c_int, axis));
|
||||
pub fn getGamepadAxisMovement(gamepad: i32, axis: GamepadAxis) f32 {
|
||||
return cdef.GetGamepadAxisMovement(@as(c_int, gamepad), axis);
|
||||
}
|
||||
|
||||
/// Set internal gamepad mappings (SDL_GameControllerDB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue