Turn off double tap as right click

Subforum for discussion and help with ScummVM's PocketPC/HandheldPC port

Moderator: ScummVM Team

Post Reply
Krono
Posts: 6
Joined: Fri Oct 12, 2007 6:04 am

Turn off double tap as right click

Post by Krono » Fri Oct 12, 2007 6:09 am

I did a search and couldn't find anything on this, so is there a way to make double tapping not a right click? This is making Zak and COMI a pain, I can't get stuff out of my inventory in COMI because of it. What is the time lapse for it to be considered a right click? If I knew that I could just count, I guess. Thanks in advance.

User avatar
knakos
ScummVM Porter
Posts: 424
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos » Fri Oct 12, 2007 8:47 am

A double tap is registered when the second tap occurs within 5 pixels and 1 sec of the first one. If you don't mind, please submit a feature request to add a configuration variable which sets the time limit (and consequently, setting it real low, like 0, would turn double tapping off).

User avatar
PsYcO
Got 2 warnings
Posts: 513
Joined: Sun Dec 24, 2006 9:27 pm
Location: UK, Enfield
Contact:

Post by PsYcO » Fri Oct 12, 2007 12:57 pm

just curious, in the event that this feature gets changed, would it be user configurable?

User avatar
knakos
ScummVM Porter
Posts: 424
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos » Fri Oct 12, 2007 1:53 pm

knakos wrote:a configuration variable which sets the time limit
So yeah, something like "doubletapdelay=XXXX" in scummvm.ini with XXXX in usec (too low or 0 => no doubletap).

Krono
Posts: 6
Joined: Fri Oct 12, 2007 6:04 am

Post by Krono » Fri Oct 12, 2007 3:40 pm

knakos wrote:A double tap is registered when the second tap occurs within 5 pixels and 1 sec of the first one. If you don't mind, please submit a feature request to add a configuration variable which sets the time limit (and consequently, setting it real low, like 0, would turn double tapping off).
Could I just do it myself? I'm not new to coding, I've got quite a bit of experience. I just thought it was something on the PDA side rather than ScummVM.

User avatar
knakos
ScummVM Porter
Posts: 424
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos » Fri Oct 12, 2007 4:51 pm

Of course, if you recompiled the wince port of scummvm. The process is documented in the wiki (hopefully this will get a lot more simpler soon). The line you need to change is in wince-sdl.cpp, in ::pollEvent, in the SDL_MOUSEBUTTONDOWN case, if that specific 'if' where there is a '< 1000' clause, make it something like '< 1'. Also, please use the source tarball from the 0.10.0 release and not the svn because it has not been updated recently, as I'm checking out some stuff off a frozen development copy.

uenz
Posts: 3
Joined: Tue Mar 25, 2008 8:29 am

Post by uenz » Wed Mar 26, 2008 9:26 pm

Is this feature planned to be applied? With the actual version it´s a pain to play the air plane scene of zak.
(viewtopic.php?t=3101&highlight=zak and others...)
I compiled a version with double tap off lie you suggested and now its really easy to play the game.
An alternative solution could be to disable click / double click if a key is mapped to the corresponding click function.

User avatar
knakos
ScummVM Porter
Posts: 424
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos » Sat Mar 29, 2008 7:19 pm

spookypeanut has already sumitted a patch which will be included in next version for this.

Post Reply