Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touchscreen mouse speed much slower vertically than horizontally? #614

Open
loomes77 opened this issue Jun 6, 2023 · 5 comments
Open

Touchscreen mouse speed much slower vertically than horizontally? #614

loomes77 opened this issue Jun 6, 2023 · 5 comments

Comments

@loomes77
Copy link

loomes77 commented Jun 6, 2023

Hi guys, I've got a little problem with the mouse speed: I have an RP2+ and want to control the mouse pointer with its touchscreen. This works generally but the vertical speed is about 4 times slower than the horizontal speed, which makes steering quite awkward.

I can adjust the overall mouse speed at "Core Options -> Input -> Mouse Speed" but this affects both axis. The problem seems to be more the vertical speed, because even when I crank up the mouse speed to 300% I still need almost the full screen height to move the mouse pointer from top to bottom, while horizontally it's then only about 1.5 cm for the full width. The problem seems to be with PUAE because when I use the ScummVM core mouse movement works normally.

Is there any way to fix this, like to adjust the vertical and horizontal speed seperately?

@sonninnos
Copy link
Collaborator

sonninnos commented Jun 6, 2023

Just tested with my phone and indeed the touchscreen moves mouse differently depending on the emulated screen width and height. Default resolution (hires singleline) is exact with both dimensions, but other modes nope. I think the solution is to handle the difference without adding options.

@loomes77
Copy link
Author

loomes77 commented Jun 6, 2023

Hmm, I had it all on "Automatic" actually (Automatic PAL, Resolution, Line Mode, Pixel Aspect Ratio).

Changing the line mode to "double line" actually improves things here. Horizontal is then only double as fast as vertical. Still not perfect, but better than 4x. ;)

Changing the other settings don't seem to have an effect on the mouse speed though.

@sonninnos
Copy link
Collaborator

Hmm, the difference between them wasn't that drastic though. In any case it seems like this is a frontend issue, since the core only reads mouse device as mouse, so changing it would affect all mouse action. As in frontend is the one that is converting touch input to mouse input, and it does not seem play ball with the wacky aspect ratio.

How neutral is your test? Many games can't be trusted with mouse pointers, so try either Workbench or holding both mouse buttons on startup with later Kickstarts (2.0+) to get a reliable mouse cursor.

@loomes77
Copy link
Author

loomes77 commented Jun 6, 2023

Yeah, I tried Oil Imperium which loads first into Workbench, and the offset was the same in the game and Workbench. Now I also tried a pure Workbench 1.3 but it's just the same.

Another thing I noticed is that in Maniac Mansion the mouse is for same reason just about half as fast as in both Oil Imperium/Workbench, so I also have to double the mouse speed setting in PUAE here. Weird stuff. ;)

And when I load Maniac Mansion in ScummVM the horizontal speed is maybe also slightly faster than vertically, but not nearly as much as in PUAE.

As for a frontend I'm starting the games directly from Retroarch, same settings for PUAE and ScummVM.

But with the 2:1 offset in double line mode it works actually quite well, so it's not a big deal anymore. The problem was just the 4:1 offset before, which was kinda extreme. So I'm fine with that if no easy solution is possible here. :)

Anyway, I'd like to thank you for your work on PUAE! Apart from that touchscreen issue I didn't have any problems so far and the games work really well. (I just absolutely love how those Amiga games look on the small 640x480 screen of the RP2+...)

@i30817
Copy link

i30817 commented Jun 29, 2023

This core is basically one of the best maintained cores in the entire project, so your praise is totally warranted and i will echo it.

Just the whdload loader helper and the focus on autoconfig is the kind of thing that makes the project stand above other projects of computer emulation that want the 'full experience' of 10.000 options for a platform that was almost a console originally anyway (in terms of 'just boot it', if you had compatible software). Has the right idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants