Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

A forum about the Hatari ST/STE/Falcon emulator - the current version is v2.1.0

Moderators: simonsunnyboy, thothy, Moderator Team

Xyla
Atari nerd
Atari nerd
Posts: 47
Joined: Fri Jun 10, 2011 8:27 pm

Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

Postby Xyla » Thu Dec 07, 2017 7:05 pm

I have installed Hatari on two different Linux laptops now and the mouse cursor moves way too fast in fullscreen mode to be usable. There are several posts about this including a workaround with an SDL 1.2 environment variable and mention that it is fixed with SDL 2.

Well I'm using SDL 2 and of course the environment variable does nothing. I cannot figure out any way to slow down the mouse cursor in Hatari. Even reducing it to a crawl in my window manager has no effect once I go into Hatari fullscreen mode.

Since there is nothing I can find on the internet acknowledging this problem occurs under SDL 2, I'm posting here. Can anyone help me?

Thanks!

siriushardware
Captain Atari
Captain Atari
Posts: 401
Joined: Thu Aug 21, 2014 7:55 pm
Location: UK

Re: Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

Postby siriushardware » Thu Dec 07, 2017 9:57 pm

To definitely resolve whether this is an SDL problem or a Hatari problem, try installing SCUMMVM and a compatible game such as 'Beneath A Steel Sky' or 'Flight Of The Amazon Queen' - both available in the repos of most distros.

In fact I think if you install either of those games they will install SCUMMVM as a dependency, since both games need it to run.

Like Hatari, SCUMMVM uses SDL and has a fullscreen mode. If you have the cursor overspeed problem in fullscreen mode there as well, it's nothing to do with Hatari.

When I encountered this problem myself I jumped to the conclusion that it was a Hatari problem but it turned out to be an SDL problem, although only present for me in SDL1.2 - as you've already read, obtaining the source for and compiling SDL2 - which I had to do because SDL2 was not present in my old distro's repos - and then obtaining the (then) latest Hatari source and compiling it specifically for SDL2 using the --enable-sdl2 parameter fixed the problem for me.

When I say I compiled from the latest Hatari source, I mean a newer version than the current stable release V2.0.0. One of the devs will tell you shortly I'm sure, but I think something about the way Hatari renders the display has been changed during ongoing development of V2.x.x. Whether this will have any bearing on your problem remains to be seen.

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1726
Joined: Sun Jul 31, 2011 1:11 pm

Re: Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

Postby Eero Tamminen » Sat Dec 09, 2017 12:31 pm

Hatari gets the mouse position change and/or relative mouse movement events from SDL, so it's unlikely to be Hatari problem.

Problem can be related to fullscreen resolution being (much) smaller than the laptop screen resolution, and your trackpad driver (and/or SDL) not handling that correctly.

SDL2 can scale the output to any size (with HW acceleration). Make sure that Hatari fullscreen resolution (and limits for that) aren't (significantly) smaller than your monitor's native resolution.

joska
Hardware Guru
Hardware Guru
Posts: 4095
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

Postby joska » Fri Jul 06, 2018 11:12 am

Bringing this thread back...

I will be away from my Ataris for a while and I'm setting up Hatari on my laptop running Ubuntu 18.04. I'm running an Atari screen resolution of 1536x896 on a 1600x900 display. In both windowed and fullscreen mode the GEM mouse moves many times faster than the X mouse when using the trackpad. It's much better when using a mouse, both cursors move approx. at the same speed then.

Both Hatari 2.0.0 and 2.1.0 is showing the same problem.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1726
Joined: Sun Jul 31, 2011 1:11 pm

Re: Hatari unusable with trackpad in fullscreen mode (Hatari v2.0.0 and SDL 2 on Linux)

Postby Eero Tamminen » Sun Jul 08, 2018 5:44 pm

Difference to X cursor sounds weird.

Hatari uses relative mouse events reported by SDL (SDL provides also absolute mouse co-ordinates, and while those would help with some cases, they could be worse for others, and would be harder to handle in Hatari).

Only thing that I think could explain the discrepancy with X cursor behavior when using real mouse vs. trackpad would be SDL accessing input devices directly (e.g. with libinput) instead of going through X.

According to Ubuntu package database, 18.04 uses latest SDL 2.0.8:
https://packages.ubuntu.com/bionic/libsdl2-2.0-0

In v2.06, SDL seems to have added options for controlling the scaling of the mouse events:
http://lists.libsdl.org/pipermail/commi ... 01189.html

But I don't know how application is supposed to find out what's good scaling factor. Or maybe SDL apps are supposed just to pass that additional configuration burden to user???

Can you find out which input driver your X server is using and whether that differs from what your SDL version is using?


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 4 guests