Gamepad functions...

This commit is contained in:
Ognjen Milan Robovic 2024-04-07 18:43:24 -04:00
parent 57c18667f5
commit 1e094a665c

View File

@ -1898,55 +1898,78 @@ package Raylib is
Convention => C, Convention => C,
External_Name => "SetExitKey"; External_Name => "SetExitKey";
--~function bool IsGamepadAvailable (int gamepad) with function Is_Gamepad_Available (
--~Import => True, Gamepad : Integer := 0
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "IsGamepadAvailable";
--~function const char *GetGamepadName (int gamepad) with function Get_Gamepad_Name (
--~Import => True, Gamepad : Integer := 0
--~Convention => C, ) return access Character with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "GetGamepadName";
--~function bool IsGamepadButtonPressed (int gamepad, int button) with function Is_Gamepad_Button_Pressed (
--~Import => True, Gamepad : Integer := 0;
--~Convention => C, Button : Gamepad_Button := Gamepad_Button_Left_Thumb
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "IsGamepadButtonPressed";
--~function bool IsGamepadButtonDown (int gamepad, int button) with function Is_Gamepad_Button_Down (
--~Import => True, Gamepad : Integer := 0;
--~Convention => C, Button : Gamepad_Button := Gamepad_Button_Left_Thumb
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "IsGamepadButtonDown";
--~function bool IsGamepadButtonReleased (int gamepad, int button) with function Is_Gamepad_Button_Released (
--~Import => True, Gamepad : Integer := 0;
--~Convention => C, Button : Gamepad_Button := Gamepad_Button_Left_Thumb
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "IsGamepadButtonReleased";
--~function bool IsGamepadButtonUp (int gamepad, int button) with function Is_Gamepad_Button_Up (
--~Import => True, Gamepad : Integer := 0;
--~Convention => C, Button : Gamepad_Button := Gamepad_Button_Left_Thumb
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "IsGamepadButtonUp";
--~function int GetGamepadButtonPressed (void) with function Get_Gamepad_Button_Pressed return Integer with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "GetGamepadButtonPressed";
--~function int GetGamepadAxisCount (int gamepad) with function Get_Gamepad_Axis_Count (
--~Import => True, Gamepad : Integer := 0
--~Convention => C, ) return Integer with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "GetGamepadAxisCount";
--~function float GetGamepadAxisMovement (int gamepad, int axis) with function Get_Gamepad_Axis_Movement (
--~Import => True, Gamepad : Integer := 0;
--~Convention => C, Axis : Gamepad_Axis := Gamepad_Axis_Left_Trigger
--~External_Name => ""; ) return Float with
Import => True,
Convention => C,
External_Name => "GetGamepadAxisMovement";
--~function int SetGamepadMappings (const char *mappings) with function Set_Gamepad_Mappings (
--~Import => True, Mappings : String := ""
--~Convention => C, ) return Integer with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "SetGamepadMappings";
function Is_Mouse_Button_Pressed ( function Is_Mouse_Button_Pressed (
Button : Mouse_Button := Mouse_Button_Left Button : Mouse_Button := Mouse_Button_Left