mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(OSX) Add stub scroll wheel
This commit is contained in:
parent
667a461c89
commit
fe747a77d0
@ -112,6 +112,9 @@ void apple_rarch_exited(void)
|
||||
apple->touches[0].screen_y = pos.y;
|
||||
}
|
||||
break;
|
||||
case NSScrollWheel:
|
||||
/* TODO/FIXME - properly implement. */
|
||||
break;
|
||||
case NSLeftMouseDown:
|
||||
case NSRightMouseDown:
|
||||
case NSOtherMouseDown:
|
||||
|
@ -275,6 +275,10 @@ static int16_t apple_mouse_state(apple_input_data_t *apple,
|
||||
return apple->mouse_buttons & 1;
|
||||
case RETRO_DEVICE_ID_MOUSE_RIGHT:
|
||||
return apple->mouse_buttons & 2;
|
||||
case RETRO_DEVICE_ID_MOUSE_WHEELUP:
|
||||
return apple->mouse_wu;
|
||||
case RETRO_DEVICE_ID_MOUSE_WHEELDOWN:
|
||||
return apple->mouse_wd;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -43,6 +43,8 @@ typedef struct
|
||||
uint32_t mouse_buttons;
|
||||
int16_t mouse_x;
|
||||
int16_t mouse_y;
|
||||
int16_t mouse_wu;
|
||||
int16_t mouse_wd;
|
||||
|
||||
uint32_t key_state[MAX_KEYS];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user