diff options
| author | Ray <[email protected]> | 2016-10-14 00:47:43 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2016-10-14 00:47:43 +0200 |
| commit | b3bc4b21d17f7e434e21684ca6a2c111ea150fbb (patch) | |
| tree | 24e9e19eb56cb9a8bc5fdff9483ce7659b2cd567 /src/raylib.h | |
| parent | 97e3277d58060df96cd002b1377a51ca4adcbb9e (diff) | |
| download | raylib-b3bc4b21d17f7e434e21684ca6a2c111ea150fbb.tar.gz raylib-b3bc4b21d17f7e434e21684ca6a2c111ea150fbb.zip | |
Working on better gamepad support
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 9bc89130..0d6f4326 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -657,6 +657,7 @@ 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 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 |
