Use the right enum in the IsGamepadButtonXXX functions

This commit is contained in:
Alan Oliveira 2022-03-25 21:39:23 +09:00
parent 261168a93c
commit d098e025ad

View File

@ -22,6 +22,7 @@ const Mesh = rl.Mesh;
const Model = rl.Model; const Model = rl.Model;
const ModelAnimation = rl.ModelAnimation; const ModelAnimation = rl.ModelAnimation;
const MouseButton = rl.MouseButton; const MouseButton = rl.MouseButton;
const GamepadButton = rl.GamepadButton;
const Music = rl.Music; const Music = rl.Music;
const NPatchInfo = rl.NPatchInfo; const NPatchInfo = rl.NPatchInfo;
const Quaternion = rl.Quaternion; const Quaternion = rl.Quaternion;
@ -192,10 +193,10 @@ pub extern fn GetKeyPressed() c_int;
pub extern fn GetCharPressed() c_int; pub extern fn GetCharPressed() c_int;
pub extern fn IsGamepadAvailable(gamepad: c_int) bool; pub extern fn IsGamepadAvailable(gamepad: c_int) bool;
pub extern fn GetGamepadName(gamepad: c_int) [*c]const u8; pub extern fn GetGamepadName(gamepad: c_int) [*c]const u8;
pub extern fn IsGamepadButtonPressed(gamepad: c_int, button: MouseButton) bool; pub extern fn IsGamepadButtonPressed(gamepad: c_int, button: GamepadButton) bool;
pub extern fn IsGamepadButtonDown(gamepad: c_int, button: MouseButton) bool; pub extern fn IsGamepadButtonDown(gamepad: c_int, button: GamepadButton) bool;
pub extern fn IsGamepadButtonReleased(gamepad: c_int, button: MouseButton) bool; pub extern fn IsGamepadButtonReleased(gamepad: c_int, button: GamepadButton) bool;
pub extern fn IsGamepadButtonUp(gamepad: c_int, button: MouseButton) bool; pub extern fn IsGamepadButtonUp(gamepad: c_int, button: GamepadButton) bool;
pub extern fn GetGamepadButtonPressed() c_int; pub extern fn GetGamepadButtonPressed() c_int;
pub extern fn GetGamepadAxisCount(gamepad: c_int) c_int; pub extern fn GetGamepadAxisCount(gamepad: c_int) c_int;
pub extern fn GetGamepadAxisMovement(gamepad: c_int, axis: c_int) f32; pub extern fn GetGamepadAxisMovement(gamepad: c_int, axis: c_int) f32;