mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 23:38:15 +00:00
Corrected html5 glfw3 bug
Mouse button values are inverted!
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user