Problems mapping keys on HP hx2490

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

Moderator: ScummVM Team

Post Reply
SchodMC
Posts: 11
Joined: Mon Oct 09, 2006 6:14 am

Problems mapping keys on HP hx2490

Post by SchodMC »

Hi,

I couldn't assign the keys for ScummVM. So mapping the EMail, Contacts, Calendar of iTask key doesn't work. The only keys I can map are the direction keys and the button in the middle of them. The Button in the middle also doesn't work properly.

For example: I mapped the button to "Rigt Click" to be able to play Sam And Max. Each time I press the button, the ScummVM menu comes up first. When I tap on "Resume", the menu closes and the mouse cursor in the game had been changed. Well, theoretically the button does what it should do, if only the menu will not apear... ;)

My Device:
HP iPAQ hx2490 with Windows Mobile 5, ScummVM 0.9.0

(P.S.: Sorry for my bad english!:oops:)
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

Your keyboard driver is injecting bogus keystrokes. What values does the keyboard dialog report when pressing any app keys (calendar etc) when mapping an action?

To (probably) solve your problem, edit the scummvm.ini file, find the line containing the action_mapping variable (should be a space separated list of 4 digit values) and then replace every 0000 with ffff

Before changing the values, please post the action_mapping line here please.

K.
iancampbell79
Posts: 11
Joined: Mon Sep 25, 2006 4:17 pm

Post by iancampbell79 »

I too am having this problem with my Ipaq 2790 (WM5).

When I try to map a key to any of the calendar, contacts, message or I-task buttons it cancels the mapping and returns to the top of the list of functions. The function I have been trying to map then shows "No Key".

The only keys I can map are the navigation buttons in the centre and the central select button.

The action_mapping line reads:

action_mapping=0000 0000 0000 0000 0114 0000 0000 000d 0000 0000 0113 0112 0000 0000

Changing 0000s to ffff did not change anything.
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

This has been a long standing bug which we have not been yet able to reproduce properly. I'd like to ask either one of you to open a bug report using our tracker, and please specify all those details as you did here. I'll see what I can do.

Also, and I'm stretching my luck here, can you please try changing all those 0000s (or ffffs) to, say, 0041 and try again?

Thanks,
Kostas
iancampbell79
Posts: 11
Joined: Mon Sep 25, 2006 4:17 pm

Post by iancampbell79 »

Have tried replacing 0000 with 0041, no change.

Sorry to be thick, but how do I open a new bug report?
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

heh, over here: http://sourceforge.net/tracker/?group_i ... tid=418820. You have to create a sf.net account if you haven't got one already.

Thanks,
K.
SchodMC
Posts: 11
Joined: Mon Oct 09, 2006 6:14 am

Post by SchodMC »

I've added a BUG report. Tell me if I can do something to help you (f.e. run a prog to figure out more debug infos or something like that).
iancampbell79
Posts: 11
Joined: Mon Sep 25, 2006 4:17 pm

Key Mapping

Post by iancampbell79 »

If I use the instructions for editing the ini file in the manual: http://forums.scummvm.org/viewtopic.php?t=936 I can get my other keys to work.
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

You're presumably talking about the keys reported as dead. Can you be more precise about which keys do not register in the key mapping dialog but you got them to work? Can you also print here the action mapping line that works for you in your scummvm.ini?
iancampbell79
Posts: 11
Joined: Mon Sep 25, 2006 4:17 pm

Keys

Post by iancampbell79 »

Yes, I can get the keys that don't map to work by editing the action_mapping line manually.

The keys that don't map are:

Calendar (Hard Key 1 or F1): 011a
Contacts (Hard Key 2 or F2): 011b
Inbox (Hard Key 3 or F3): 011c
ArrowKey (Up Arrow) (Hard Key 4 or F4): 011d

The only ones that can be mapped using the mapping facility are the directional and select button on the central control.

My action mapping line now reads:

action_mapping=0000 011a 0000 0000 011b 0000 0000 011d 0000 0000 0111 0112 0000 0000 0000 0000 0000 0000 0000

which allows me to use the Calendar button for Save, my Contacts button for Hide, and my ArrowKey for Right-Click (as well as Zoom Up and Zoom Down on my directional central control).

I notice that this line has increased in length since I posted it above. This was not done by me. I only replaced the relevant entries as per the manual.
Post Reply