Unable to map keys on iPAQ hx4700

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

Moderator: ScummVM Team

Post Reply
groov
Posts: 3
Joined: Tue Nov 01, 2005 1:32 pm

Unable to map keys on iPAQ hx4700

Post by groov »

I'm unable to map keys on my hx4700, like the Axim guys I see no map keys option. If I try to start Sam n'Max, Scumm demands I map a right click key, but I've tried all hard keys on my device and Scumm won't register any of them, and I need to soft reset to quit from the map key dialog.
The problem with Scumm not recognizing hard keys on the hx4700 was there in version 0.7.1 as well, but not in 0.70.
Cirion81
Posts: 36
Joined: Mon Oct 31, 2005 5:02 pm
Location: Germany

Post by Cirion81 »

I was able to map the keys correctly, although I had to start CMI to do so because the key-mapping-option doesn't exist.

Did you select the action option, then press map and then press the key? That's how I mapped the keys.
User avatar
Arisme
ScummVM Porter
Posts: 38
Joined: Sun Oct 23, 2005 8:07 am
Location: Paris, France
Contact:

Post by Arisme »

I'll really need to have some developer owning a device on which there is such a problem (supposing this problem can be repeated at will) to run a debug version (including a debug version of the SDL port) and see what happens. I have no idea of what's going on there as all my test platforms are running correctly (Toshiba E800, Asus A620 BT, SPV C500), including the emulators.
Cirion81
Posts: 36
Joined: Mon Oct 31, 2005 5:02 pm
Location: Germany

Post by Cirion81 »

Hello Arisme,

since I am not a developer of ScummVM, I may not be your first choice, but I'd be willing to run a debug version on my iPAQ hx4700. Just tell me what to do.
User avatar
Arisme
ScummVM Porter
Posts: 38
Joined: Sun Oct 23, 2005 8:07 am
Location: Paris, France
Contact:

Post by Arisme »

That's nice, everybody is welcome :D

First you can put a breakpoint in gui\KeysDialog and see what's the value transmitted by SDL in the handleKeyDown and handleKeyUp methods.
Cirion81
Posts: 36
Joined: Mon Oct 31, 2005 5:02 pm
Location: Germany

Post by Cirion81 »

Hello Arisme,

first I have to tell you that I never did any sw-developement for a embedded device, thus I am new to remote debugging. So maybe I need a little more guidance. But lets see what you can do with my findings. I'll describe in steps (again) what I have done, so you can tell me where I did something wrong ...

1. I recompiled PocketSCUMM with the changes I described in the other thread, this time setting my active configuration to Win32(WCE ARMV4) Debug
2. During linking I got some additional warnings. Here they are, maybe some of them are of some significance
Linking...
Creating library ARMV4Dbg/scummvm.lib and object ARMV4Dbg/scummvm.exp
hq2x.obj : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00002D14
hq3x.obj : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00026D8C
libmpeg2.lib(slice.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00112C2C
scumm.lib(gfx.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00143394
scumm.lib(sound.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0019085C
scumm.lib(script_v5.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0019E3C8
scumm.lib(script_v6.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x001B3948
simon.lib(simon.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x002946F0
sword1.lib(router.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x00383FE0
gob.lib(goblin.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x003B5E98
saga.lib(interface.obj) : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x003DDC38
libmpeg2.lib(alloc.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(cpu_accel.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(cpu_state.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(decode.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(header.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(idct.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(motion_comp.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
libmpeg2.lib(slice.obj) : warning LNK4204: 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\vc60.pdb' is missing debugging information for referencing module; linking object as if no debug info
3. I uploaded the file to my device and executed it - at least CMI does work, albeit it takes more time to start the game. What a surprise :-) so much for a first test, closed PocketSCUMM
4. I then started the debugger, I asked me about some local dll's which I gathered from the online help are important for dll-debugging. I don't have them, so I clicked cancel on every request
5. On every start of debug MSEVC asks about compiling ARMV4DBG\scummvm.bsc which I allow, and PocketSCUMM starts
6. Pressing the Beak Execution on the screen where I can chose my game doesn't work, all threads are executing SysCalls. For a test I clicked the about button, now I can break in, so this seems to work
7. When starting CMI the screen turns black and nothing happens - all threads are doing SysCalls, so I can't break execution. A quick look in the Kernel Tracker shows, that both ScummVM threads are waiting for a object and are blocked. I waited several minutes, but nothing happened.

so, what now? I set a brakepoint in KeysDialog (right at the beginning of the HandleCommand function) as you requested, but seemingly the breakpoint is not reached, nothing of the above described behavior changes.

this is the debug output after quitting PocketSCUMM
scummvm.exe
shutil.dll
shellres.dll
tshres.dll
commctrl.dll
oleaut32.dll
ossvcs.dll
aygshell.dll
ole32.dll
coredll.dll.0407.mui
coredll.dll
Running on Ozone
GAPI driver available
Running on Ozone
Running true Ozone with stylus hack
GAPI_RealizePalette NOT IMPLEMENTED !
compime.dll
gx.dll
GAPI_WinPAINT NOT IMPLEMENTED !
Module not foundT IMPLEMENTED !
Module not foundT IMPLEMENTED !
Module not foundT IMPLEMENTED !
The program 'D:\PocketScumm Build Tools\scummvm-0.8.0\dists\msevc4\scummvm\ARMV4Dbg\scummvm.exe' has exited with code 0 (0x0).
pjfrigate
Posts: 1
Joined: Sat Nov 19, 2005 9:56 pm
Location: Italy

Post by pjfrigate »

I have solved the same problem on my i-Mate PDA2K with Sam & Max:

Open with a text editor the file scummvm.ini. You'll find a section [pocketpc] with two lines:

action_mapping=0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
action_mapping_version=4

Change the action_mapping line to:
action_mapping=0001 0002 0003 0004 0005 0006 0007 0000 0009 0010 0011 0012 0013

Launch Sam & Max. When requested to map right click, select "7. Right click" on the list, press "Map" then your selected key.

On my PDA, pressing "hard key 1", the above line becomes:
.... 0007 011a 0009 ....
and the game works good!

I hope this help you.
User avatar
yS
Posts: 13
Joined: Mon Oct 31, 2005 8:43 am
Contact:

Post by yS »

Same here. h1915.

I can't map the buttons so I can't battle on Indy3 and I can't finish the game :-(

Any ini option to force the menu being loaded? Or is it more complicated?
User avatar
Arisme
ScummVM Porter
Posts: 38
Joined: Sun Oct 23, 2005 8:07 am
Location: Paris, France
Contact:

Post by Arisme »

I'll see if Kostas patch fixes this or try to locate the problem
Post Reply