RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Physical Mouse not Supported/Working in Game on iPhone and iPad

Open TradeDraft opened this issue 11 months ago • 10 comments

Is there an existing issue for this?

  • [x] This is a bug in RetroArch frontend
  • [ ] I have searched the existing issues

Description

I was trying to use a Mouse on my iPad and iPhone but sadly had no Luck

Info Here:

iPad is version 17 and using last offical RA AppStore Version

iPhone is using latest firmware/Version and RA latest TestFlight Version

Using Logitech Wireless Mouse and Keyboard

Asked DosBox Pure GitHub as mostly trying Dos Games

He said not his issue and it’s a RetroArch one

Link to Issue Post I made

https://github.com/schellingb/dosbox-pure/issues/582

So did I miss doing something or something need to be Fixed?

Expected behavior

Should work like a Mouse Normally Does

Steps to reproduce the bug

1 - Open RA

2 - Load Content to Load Game

3 - Load Game and see mouse not move

Version/Commit

1.20.0 From Playstore for iPad and latest from TestFlight in iPhone

Bisect Results

No

Present in the nightly version

Yes, this is reproduced in the nightly build

Platform & operating system

iPad version 17 and 18 on iPhone

Affected Cores

PCUM and DosBox Pure and probably all games that need mouse support

Environment information

iPhone 13

and

iPad 7th Generation

Relevant log output


TradeDraft avatar Feb 18 '25 15:02 TradeDraft

Make sure Automatic Mouse Grab is enabled.

warmenhoven avatar Feb 19 '25 02:02 warmenhoven

Make sure Automatic Mouse Grab is enabled.

I tried that already and sadly did not work

TradeDraft avatar Feb 19 '25 03:02 TradeDraft

Hm, I had this working at one point a few months ago, but now it's not working for me either. I'll see if I can track down if something broke.

warmenhoven avatar Feb 19 '25 23:02 warmenhoven

Pretty sure what's going on is that when the mouse overlay is active it only pays attention to the overlay and ignores all other mouse input. You can confirm by turning off the mouse input, settings > user interface > on-screen overlay > enable overlay lighten, mouse, and pointer (or similarly in quick menu > on-screen overlay).

I've put up #17615 that should make it so both can work at the same time.

warmenhoven avatar Feb 21 '25 19:02 warmenhoven

Pretty sure what's going on is that when the mouse overlay is active it only pays attention to the overlay and ignores all other mouse input. You can confirm by turning off the mouse input, settings > user interface > on-screen overlay > enable overlay lighten, mouse, and pointer (or similarly in quick menu > on-screen overlay).

I've put up #17615 that should make it so both can work at the same time.

Tried that and yes the Mouse will move but when I click on Mouse Buttons and nothing happens when I do that

Update:

Turned on Automatic Mouse Grab Fixed it on iPhone but not iPad that has the latest Official Version on AppStore

TradeDraft avatar Feb 22 '25 08:02 TradeDraft

Thank You @warmenhoven for Finding and Fixing the Issue

TradeDraft avatar Feb 22 '25 10:02 TradeDraft

@warmenhoven I've had a multi-year long standing issue with mouse on iOS (have been testing on phones with larger screens, not iPad) -- I believe either this or commits closeby fixes the issue: tried Amiga, Dos and ScummVM and all work perfectly now - thank you so much!

TyroneSlothrop avatar Feb 23 '25 19:02 TyroneSlothrop

I tried it and I find the Circle from Mouse won’t Disappear what ever I do

Mouse also shown outside of Retroarch

The Circle can click on Overlay Buttons but not in Game

Video showing that here:

https://youtu.be/k0KZwMFFKqs?si=39804cxTc0B3_UW2

Mouse and Circle Image

https://ibb.co/tPLVhGFR

Am I doing some wrong or have I missed doing something to fix it?

TradeDraft avatar Feb 25 '25 15:02 TradeDraft

Make sure you have game focus on.

warmenhoven avatar Feb 27 '25 04:02 warmenhoven

Make sure you have game focus on.

Done that and still not made any Difference

TradeDraft avatar Feb 27 '25 08:02 TradeDraft