summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-11-01 14:39:57 +0100
committerraysan5 <[email protected]>2016-11-01 14:39:57 +0100
commit64f67f6e9f414a54dfc3fb519b892ecd5517f2cf (patch)
treec9587d0b1e84a89a3e9c8acb1ae16a3aeede4f78 /src/raylib.h
parent6d3b11ef9124c9d938d9ecd2b341837bd5ed5dc1 (diff)
downloadraylib-64f67f6e9f414a54dfc3fb519b892ecd5517f2cf.tar.gz
raylib-64f67f6e9f414a54dfc3fb519b892ecd5517f2cf.zip
Improved gamepad support
new function: GetGamepadAxisCount() new function: IsGamepadName()
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 4996bb2b..58037770 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -687,13 +687,15 @@ RLAPI int GetKeyPressed(void); // Get latest key
RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC)
RLAPI bool IsGamepadAvailable(int gamepad); // Detect if a gamepad is available
+RLAPI bool IsGamepadName(int gamepad, const char *name); // Check gamepad name (if available)
RLAPI const char *GetGamepadName(int gamepad); // Return gamepad internal name id
-RLAPI float GetGamepadAxisMovement(int gamepad, int axis); // Return axis movement value for a gamepad axis
RLAPI bool IsGamepadButtonPressed(int gamepad, int button); // Detect if a gamepad button has been pressed once
RLAPI bool IsGamepadButtonDown(int gamepad, int button); // Detect if a gamepad button is being pressed
RLAPI bool IsGamepadButtonReleased(int gamepad, int button); // Detect if a gamepad button has been released once
RLAPI bool IsGamepadButtonUp(int gamepad, int button); // Detect if a gamepad button is NOT being pressed
RLAPI int GetGamepadButtonPressed(void); // Get the last gamepad button pressed
+RLAPI int GetGamepadAxisCount(int gamepad); // Return gamepad axis count for a gamepad
+RLAPI float GetGamepadAxisMovement(int gamepad, int axis); // Return axis movement value for a gamepad axis
RLAPI bool IsMouseButtonPressed(int button); // Detect if a mouse button has been pressed once
RLAPI bool IsMouseButtonDown(int button); // Detect if a mouse button is being pressed