mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
(Apple) Make apple_pointer_state somewhat more robust
This commit is contained in:
parent
fe747a77d0
commit
fcd7cc958a
@ -291,10 +291,15 @@ static int16_t apple_pointer_state(apple_input_data_t *apple,
|
|||||||
|
|
||||||
if (idx < apple->touch_count && (idx < MAX_TOUCHES))
|
if (idx < apple->touch_count && (idx < MAX_TOUCHES))
|
||||||
{
|
{
|
||||||
|
int16_t x, y;
|
||||||
const apple_touch_data_t *touch = (const apple_touch_data_t *)
|
const apple_touch_data_t *touch = (const apple_touch_data_t *)
|
||||||
&apple->touches[idx];
|
&apple->touches[idx];
|
||||||
int16_t x = touch->fixed_x;
|
|
||||||
int16_t y = touch->fixed_y;
|
if (!touch)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
x = touch->fixed_x;
|
||||||
|
y = touch->fixed_y;
|
||||||
|
|
||||||
if (want_full)
|
if (want_full)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user