Added support for additional mouse buttons (#1753)
* Added support for additional mouse buttons * Renamed mouse button enum Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
This commit is contained in:
parent
2565c01158
commit
2545f62565
27 changed files with 81 additions and 65 deletions
16
src/raylib.h
16
src/raylib.h
|
@ -637,11 +637,21 @@ typedef enum {
|
|||
KEY_VOLUME_DOWN = 25
|
||||
} KeyboardKey;
|
||||
|
||||
// Add backwards compatibility support for deprecated names
|
||||
#define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT
|
||||
#define MOUSE_RIGHT_BUTTON MOUSE_BUTTON_RIGHT
|
||||
#define MOUSE_MIDDLE_BUTTON MOUSE_BUTTON_MIDDLE
|
||||
|
||||
// Mouse buttons
|
||||
typedef enum {
|
||||
MOUSE_LEFT_BUTTON = 0,
|
||||
MOUSE_RIGHT_BUTTON = 1,
|
||||
MOUSE_MIDDLE_BUTTON = 2
|
||||
MOUSE_BUTTON_LEFT = 0,
|
||||
MOUSE_BUTTON_RIGHT = 1,
|
||||
MOUSE_BUTTON_MIDDLE = 2,
|
||||
MOUSE_BUTTON_SIDE = 3,
|
||||
MOUSE_BUTTON_EXTRA = 4,
|
||||
MOUSE_BUTTON_FORWARD = 5,
|
||||
MOUSE_BUTTON_BACK = 6,
|
||||
MOUSE_BUTTON_MAX = 7
|
||||
} MouseButton;
|
||||
|
||||
// Mouse cursor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue