mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Fixes mouse cursor bug that prevents mouse movement when the left/right mouse button is held down. (#16942)
This commit is contained in:
parent
b3af19f65f
commit
73b456e307
@ -884,7 +884,7 @@ enum
|
|||||||
defaultRegion:(UIPointerRegion *)defaultRegion API_AVAILABLE(ios(13.4))
|
defaultRegion:(UIPointerRegion *)defaultRegion API_AVAILABLE(ios(13.4))
|
||||||
{
|
{
|
||||||
cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
|
cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
|
||||||
if (!apple)
|
if (!apple || apple->mouse_grabbed)
|
||||||
return nil;
|
return nil;
|
||||||
CGPoint location = [apple_platform.renderView convertPoint:[request location] fromView:nil];
|
CGPoint location = [apple_platform.renderView convertPoint:[request location] fromView:nil];
|
||||||
apple->touches[0].screen_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
|
apple->touches[0].screen_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user