(OSX) Add stub scroll wheel

This commit is contained in:
Twinaphex 2015-03-11 00:35:26 +01:00
parent 667a461c89
commit fe747a77d0
3 changed files with 9 additions and 0 deletions

View File

@ -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:

View File

@ -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;

View File

@ -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];