mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 03:57:29 +00:00
Use the right enum in the IsGamepadButtonXXX functions
This commit is contained in:
parent
261168a93c
commit
d098e025ad
@ -22,6 +22,7 @@ const Mesh = rl.Mesh;
|
||||
const Model = rl.Model;
|
||||
const ModelAnimation = rl.ModelAnimation;
|
||||
const MouseButton = rl.MouseButton;
|
||||
const GamepadButton = rl.GamepadButton;
|
||||
const Music = rl.Music;
|
||||
const NPatchInfo = rl.NPatchInfo;
|
||||
const Quaternion = rl.Quaternion;
|
||||
@ -192,10 +193,10 @@ pub extern fn GetKeyPressed() c_int;
|
||||
pub extern fn GetCharPressed() c_int;
|
||||
pub extern fn IsGamepadAvailable(gamepad: c_int) bool;
|
||||
pub extern fn GetGamepadName(gamepad: c_int) [*c]const u8;
|
||||
pub extern fn IsGamepadButtonPressed(gamepad: c_int, button: MouseButton) bool;
|
||||
pub extern fn IsGamepadButtonDown(gamepad: c_int, button: MouseButton) bool;
|
||||
pub extern fn IsGamepadButtonReleased(gamepad: c_int, button: MouseButton) bool;
|
||||
pub extern fn IsGamepadButtonUp(gamepad: c_int, button: MouseButton) bool;
|
||||
pub extern fn IsGamepadButtonPressed(gamepad: c_int, button: GamepadButton) bool;
|
||||
pub extern fn IsGamepadButtonDown(gamepad: c_int, button: GamepadButton) bool;
|
||||
pub extern fn IsGamepadButtonReleased(gamepad: c_int, button: GamepadButton) bool;
|
||||
pub extern fn IsGamepadButtonUp(gamepad: c_int, button: GamepadButton) bool;
|
||||
pub extern fn GetGamepadButtonPressed() c_int;
|
||||
pub extern fn GetGamepadAxisCount(gamepad: c_int) c_int;
|
||||
pub extern fn GetGamepadAxisMovement(gamepad: c_int, axis: c_int) f32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user