summaryrefslogtreecommitdiffhomepage
path: root/src/rcore_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore_drm.c')
-rw-r--r--src/rcore_drm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rcore_drm.c b/src/rcore_drm.c
index c7823f82..ccf44feb 100644
--- a/src/rcore_drm.c
+++ b/src/rcore_drm.c
@@ -739,13 +739,6 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
-// Set a custom key to exit program
-// NOTE: default exitKey is ESCAPE
-void SetExitKey(int key)
-{
- CORE.Input.Keyboard.exitKey = key;
-}
-
// Get gamepad internal name id
const char *GetGamepadName(int gamepad)
{
@@ -764,6 +757,7 @@ const char *GetGamepadName(int gamepad)
int GetGamepadAxisCount(int gamepad)
{
int axisCount = 0;
+
if (CORE.Input.Gamepad.ready[gamepad]) ioctl(platform.gamepadStreamFd[gamepad], JSIOCGAXES, &axisCount);
CORE.Input.Gamepad.axisCount = axisCount;