mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Cocoa) sendEvent - cleanups
This commit is contained in:
parent
e5a52a82b6
commit
dfc8f66d09
@ -140,10 +140,11 @@ static void app_terminate(void)
|
||||
if ([NSWindow windowNumberAtPoint:pos belowWindowWithWindowNumber:0] != window_number)
|
||||
return;
|
||||
#endif
|
||||
|
||||
CGFloat delta_x = event.deltaX;
|
||||
CGFloat delta_y = event.deltaY;
|
||||
/* Relative */
|
||||
apple->mouse_rel_x += (int16_t)event.deltaX;
|
||||
apple->mouse_rel_y += (int16_t)event.deltaY;
|
||||
apple->mouse_rel_x += (int16_t)delta_x;
|
||||
apple->mouse_rel_y += (int16_t)delta_y;
|
||||
|
||||
/* Absolute */
|
||||
apple->touches[0].screen_x = (int16_t)pos.x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user