summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-10-22 12:20:42 +0200
committerraysan5 <[email protected]>2021-10-22 12:20:42 +0200
commit83cd22ee5a86bb8c9f901103aa3c842e5d6394ad (patch)
tree650660b446012b3195838b6661f62ee0142b0345 /src
parentdd6e006d78b92f03c73d4b6157cd8d66e2a74d52 (diff)
downloadraylib-83cd22ee5a86bb8c9f901103aa3c842e5d6394ad.tar.gz
raylib-83cd22ee5a86bb8c9f901103aa3c842e5d6394ad.zip
Minor tweaks
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 3e357118..6c1c9806 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -440,7 +440,8 @@ typedef struct CoreData {
float currentWheelMove; // Registers current mouse wheel variation
float previousWheelMove; // Registers previous mouse wheel variation
#if defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
- char currentButtonStateEvdev[MAX_MOUSE_BUTTONS]; // Holds the new mouse state for the next polling event to grab (Can't be written directly due to multithreading, app could miss the update)
+ // NOTE: currentButtonState[] can't be written directly due to multithreading, app could miss the update
+ char currentButtonStateEvdev[MAX_MOUSE_BUTTONS]; // Holds the new mouse state for the next polling event to grab
#endif
} Mouse;
struct {
@@ -454,13 +455,13 @@ typedef struct CoreData {
int lastButtonPressed; // Register last gamepad button pressed
int axisCount; // Register number of available gamepad axis
bool ready[MAX_GAMEPADS]; // Flag to know if gamepad is ready
+ char name[MAX_GAMEPADS][64]; // Gamepad name holder
char currentButtonState[MAX_GAMEPADS][MAX_GAMEPAD_BUTTONS]; // Current gamepad buttons state
char previousButtonState[MAX_GAMEPADS][MAX_GAMEPAD_BUTTONS]; // Previous gamepad buttons state
float axisState[MAX_GAMEPADS][MAX_GAMEPAD_AXIS]; // Gamepad axis state
-#if defined(PLATFORM_RPI) || defined(PLATFORM_DRM) || defined(PLATFORM_WEB)
+#if defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
pthread_t threadId; // Gamepad reading thread id
int streamId[MAX_GAMEPADS]; // Gamepad device file descriptor
- char name[MAX_GAMEPADS][64]; // Gamepad name holder
#endif
} Gamepad;
} Input;