Raspberry Pi Touchscreen - Mapping long press to F5 for in game menu

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
Posts: 1
Joined: Tue Mar 03, 2020 12:18 am

Raspberry Pi Touchscreen - Mapping long press to F5 for in game menu

Post by kramnadroj »

Hello all,

Pretty new to all this. I'm looking to make a handheld ScummVM emulator using the touchscreen below (ScummVM version 2.0.0, installed using apt-get install scummvm)
https://www.raspberrypi.org/products/ra ... h-display/

Problem is, there's no buttons on it other than the touchscreen. I can launch and play the games okay, touchscreen works fine for navigating around, but the problem comes when I want to bring up the menu for loads or saves. This requires a keyboard action (F5). I'd like to map a long press or multitouch to F5 to handle this. I know there are some games where keyboard is required (think Last Crusade has a fighting mechanic), but others don't.

I got multitouch mapped to right click using "twofing" (works for bringing up the menu on items, like a right click)

And I also tried mapping right click to F5 using xbindkeys (should note that this didn't fully work, hitting right click on my connected mouse calls F5, but multitouching the screen doesn't, still just acts as a normal right click)

Nothing seems to happen when ScummVM is open though, right click doesn't do anything, nor does long press on the screen. I'd like either a multitouch option or a long press. Don't think there's many more options than those. I know the Android port has the back button mapped to the menu, but is there anyway to do that with ScummVM on the Raspberry Pi? I feel I'm running in circles here and not really sure where to go.

My Pi details are below:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION="10 (buster)"

Thanks everyone.
Post Reply