Corrected html5 glfw3 bug
Mouse button values are inverted!
This commit is contained in:
parent
88e1fd9530
commit
c17c1ccaea
1 changed files with 7 additions and 2 deletions
|
@ -157,8 +157,13 @@
|
||||||
|
|
||||||
// Mouse Buttons
|
// Mouse Buttons
|
||||||
#define MOUSE_LEFT_BUTTON 0
|
#define MOUSE_LEFT_BUTTON 0
|
||||||
|
#if defined(PLATFORM_WEB)
|
||||||
|
#define MOUSE_RIGHT_BUTTON 2
|
||||||
|
#define MOUSE_MIDDLE_BUTTON 1
|
||||||
|
#else
|
||||||
#define MOUSE_RIGHT_BUTTON 1
|
#define MOUSE_RIGHT_BUTTON 1
|
||||||
#define MOUSE_MIDDLE_BUTTON 2
|
#define MOUSE_MIDDLE_BUTTON 2
|
||||||
|
#endif
|
||||||
|
|
||||||
// Gamepad Number
|
// Gamepad Number
|
||||||
#define GAMEPAD_PLAYER1 0
|
#define GAMEPAD_PLAYER1 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue