diff options
| author | Ray <raysan5@gmail.com> | 2015-11-05 13:42:18 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2015-11-05 13:42:18 +0100 |
| commit | c17c1ccaea53a9591ddc0e57fb55644904e0d49e (patch) | |
| tree | 69f26970c902ea01faae397cb2e611b50b1691d1 /src | |
| parent | 88e1fd9530100311071352f71999cca08854a3a2 (diff) | |
| download | raylib-c17c1ccaea53a9591ddc0e57fb55644904e0d49e.tar.gz raylib-c17c1ccaea53a9591ddc0e57fb55644904e0d49e.zip | |
Corrected html5 glfw3 bug
Mouse button values are inverted!
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 9 |
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 |
