mirror of
https://github.com/libretro/beetle-saturn-libretro.git
synced 2024-11-23 09:19:49 +00:00
Mouse support
This commit is contained in:
parent
325781d8a1
commit
35ccf456a2
@ -457,7 +457,14 @@ void input_update( retro_input_state_t input_state_cb )
|
||||
}
|
||||
|
||||
// mouse input
|
||||
int dx_raw, dy_raw;
|
||||
dx_raw = input_state_cb( iplayer, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_X );
|
||||
dy_raw = input_state_cb( iplayer, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_Y );
|
||||
|
||||
int *delta;
|
||||
delta = (int*)p_input;
|
||||
delta[ 0 ] = dx_raw;
|
||||
delta[ 1 ] = dy_raw;
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user