aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/raylib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 0b07e523..d8655451 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -157,8 +157,13 @@
// Mouse Buttons
#define MOUSE_LEFT_BUTTON 0
-#define MOUSE_RIGHT_BUTTON 1
-#define MOUSE_MIDDLE_BUTTON 2
+#if defined(PLATFORM_WEB)
+ #define MOUSE_RIGHT_BUTTON 2
+ #define MOUSE_MIDDLE_BUTTON 1
+#else
+ #define MOUSE_RIGHT_BUTTON 1
+ #define MOUSE_MIDDLE_BUTTON 2
+#endif
// Gamepad Number
#define GAMEPAD_PLAYER1 0