Opened 3 years ago

Closed 10 days ago

Last modified 10 days ago

#13456 closed defect (outdated)

BACKENDS: SDL: No Mouse or Keyboard with SDL 2.20

Reported by: eviltroooper Owned by: sev-
Priority: normal Component: Common
Version: Keywords:
Cc: Game:

Description

I use emuelec for scummvm, on the last version they use Scummvm 2.6.0 and SDL 2.20.
With this version mouse and keyboard is not working anymore.
As you see if the dev use SDL 2.0.9 it works.

Is it possible to fix this?

from emuelec Dev:

This is definitely a SDL issue, as I compiled git version b21fd0c9aa075915658d65c1c61e9ee2fb23d363 with SDL 2.0.9 and it works fine (if I use the SDL2 2.0.9 library in /emuelec/lib) but I am not going to revert SDL, This needs to be fixed in Scummv (I think, as all the other programs that use keyboard with SDL work fine) because if I compile the same exact version with only the library change or if I use the SDL2.20 library instead then the mouse/keyboard stops working.

https://github.com/EmuELEC/EmuELEC/issues/879

Thanks.

Change History (11)

comment:1 by athrxx, 3 years ago

Is this a problem that occurs with any version of ScummVM on our downloads page?

https://www.scummvm.org/downloads/

Or is that an issue that only comes up in an unsupported (third-party product) setting?

comment:2 by eviltroooper, 3 years ago

Mhh i would like to say with any version, I tried 2.5.1, 2.4 and 2.6.1.

They developers tried newest scummvm with older SDL it works.
If we use SDL 2.20 it won’t work with every scummvm version

So it seems like Scummvm has a problem with SDL 2.20

Ohh Joystick is working..,

comment:3 by eviltroooper, 3 years ago

Emuelec dev say it’s not there bug..

:(

comment:4 by eviltroooper, 3 years ago

Ohh on other apps that use SDL keyboard and mouse working, only scummvm not..

comment:5 by eviltroooper, 3 years ago

And me again,
On your download page I can’t find version for aarch64

comment:6 by athrxx, 3 years ago

So, if you use any product that we actually offer and support, there isn't any bug?

comment:7 by eviltroooper, 3 years ago

I can’t say that, on windows anything is working.

For aarch64 you don’t offer a Package..

But it seems like it SDL 2.0.20

It it possible that SDL is the problem?

comment:8 by aquadran, 2 years ago

Summary: No Mouse or Keyboard with SDL 2.20SDL: No Mouse or Keyboard with SDL 2.20

comment:10 by sev-, 10 days ago

Owner: set to sev-
Resolution: outdated
Status: newclosed
Summary: SDL: No Mouse or Keyboard with SDL 2.20BACKENDS: SDL: No Mouse or Keyboard with SDL 2.20

Yes, it is a problem with SDL. I am sure it is resolved by this time. Please, use the latest version of ScummVM or replace SDL.dll with a fresh one.

comment:11 by dajoho, 10 days ago

Hi sev. Thanks for the reply and for closing the ticket after reviewing the github comment.

Slight correction on the resolution and to anyone arriving here by Google with a similar problem:

The issue was not SDL, but in fact the ScummVM configure up until 2.5.1 setting USE_OPENGL_GAME and USE_OPENGL_SHADERS by default to false on Arm/Mali-Hardware but after the GLEW/GLAD refactoring introduced just before 2.6.0 setting them by default to true, which caused incompatibilities with the mouse/keyboard on certain Mali GPUs.

This is not an SDL bug, but either a regression/bug/improvement between ScummVM versions which caused an inconsistency with that specific hardware setup.

As the Github issue above details, the problem described above can by fixed without upgrading anything by just adding the additional parameters --disable-opengl-game-classic and --disable-opengl-game-shaders while running ./configure

The commit which caused the difference in behaviour is linked in the github issue, but here it is for convenience: https://github.com/scummvm/scummvm/commit/a9418f8f6343151ff3bf98df74a4b44c714c1b3e

This ticket can be left closed. It is "resolved".

Note: See TracTickets for help on using tickets.