parent
c8d5f232b3
commit
8018024cb7
@ -25,12 +25,12 @@ typedef enum MouseActions { PRESS, RELEASE, DRAG, MOVE } MouseAction;
|
|||||||
static inline unsigned int
|
static inline unsigned int
|
||||||
button_map(int button) {
|
button_map(int button) {
|
||||||
switch(button) {
|
switch(button) {
|
||||||
case GLFW_MOUSE_BUTTON_1:
|
case GLFW_MOUSE_BUTTON_LEFT:
|
||||||
return 0;
|
return 0;
|
||||||
case GLFW_MOUSE_BUTTON_2:
|
case GLFW_MOUSE_BUTTON_RIGHT:
|
||||||
return 1;
|
|
||||||
case GLFW_MOUSE_BUTTON_3:
|
|
||||||
return 2;
|
return 2;
|
||||||
|
case GLFW_MOUSE_BUTTON_MIDDLE:
|
||||||
|
return 1;
|
||||||
case GLFW_MOUSE_BUTTON_4:
|
case GLFW_MOUSE_BUTTON_4:
|
||||||
return EXTRA_BUTTON_INDICATOR;
|
return EXTRA_BUTTON_INDICATOR;
|
||||||
case GLFW_MOUSE_BUTTON_5:
|
case GLFW_MOUSE_BUTTON_5:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user