Opened 14 years ago

Closed 13 years ago

Last modified 21 months ago

#2882 closed defect (fixed)

WINCE: Could not map the keys of WM5 device...

Reported by: SF/schodmc Owned by: SF/knakos
Priority: low Component: Port: WinCE
Keywords: Cc:
Game:

Description

I have a HP iPAQ hx2490 with Windows Mobile 5 and I could not MAP the keys (Contacts, Calendar, Mail and iTASK). Each time I start to map a key and press f.e. the contact button, nothing happens. However, the action I whant to map will still be unmapped.

The only keys I can map are the direction keys and the button in the middle of them. Well, if I map that button, the mapped action works but also the ScummVM menu will be shown.

Let me know if I can do something to help you find the reason for that bug.

Ticket imported from: #1583558. Ticket imported from: bugs/2882.

Change History (21)

comment:1 by SF/knakos, 14 years ago

Owner: set to SF/knakos

comment:2 by SF/knakos, 13 years ago

this is probably in the latest svn build up in the forums. please check it out and report.

comment:3 by SF/knakos, 13 years ago

Status: newpending

comment:4 by SF/iancampbell79, 13 years ago

Model: IPAQ hx2790 OS: WIndows Mobile v5.0 (5.1.1702 build 14366.1.0.1)

When I press a key in the keyboard mapping, the centre (up, down, left, right and action) buttons map correctly, all other buttons map to None.

comment:5 by SF/iancampbell79, 13 years ago

Sorry, forgot to add the mapping line:

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

comment:6 by SF/knakos, 13 years ago

Status: pendingnew

comment:7 by SF/knakos, 13 years ago

Setting this to open until I fix Ian Campbell's equivalent bug.

I would be nice if schodmc tried out the 05 may 07 svn build as well.

comment:8 by SF/knakos, 13 years ago

Status: newpending

comment:9 by SF/knakos, 13 years ago

I have a testing build of scummvm ready:

http://users.uoa.gr/~knakos/scummvm/binaries/scummvm_20070513.exe.bz2

Here's what has to be done: Edit the scummvm.ini file and add a line in the [scummvm] secton with the following text:

debuglevel=1

then run, and press each key once, making sure you remember in which order you pressed them. Then paste here the scummvm_stdout/err.txt files which should contain keycode information.

comment:10 by SF/iancampbell79, 13 years ago

Here you go:

I pressed Calendar, Contacts, Email, ITask, Up, Down, Left, Right, Enter

scummvm_stderr.txt

SDL: Bootstrapping GAPI device SDL: Device is portrait SDL: GAPI_RealizePalette NOT IMPLEMENTED SDL: Checking for GAPI SDL: Found GAPI SDL: Running on GAPI driver at 240x320 (real 240, 320) SDL: GAPI_WinPAINT NOT IMPLEMENTED

scummvm_stdout.txt

Using configuration file: scummvm.ini Sound opened OK, mixing at 11025 Hz Lost mouse focus. Key down 0 unknown key Key up 0 unknown key Key down 154 unknown key Key up 154 unknown key Key down 0 unknown key Key up 0 unknown key Key down 155 unknown key Key up 155 unknown key Key down 0 unknown key Key up 0 unknown key Key down 156 unknown key Key up 156 unknown key Key down 0 unknown key Key up 0 unknown key Key down 157 unknown key Key up 157 unknown key Key down 114 left Key up 114 left Key down 113 right Key up 113 right Key down 111 up Key up 111 up Key down 112 down Key up 112 down Key down 130 unknown key Key down D return Looking for queen Trying to start game 'Flight of the Amazon Queen' Sound opened OK, mixing at 22050 Hz Key up D return Key up 130 unknown key Key down 11E f5 Key up 11E f5 Got mouse focus. Key down 1B escape Key up 1B escape Key down 1B escape Key up 1B escape Key down 1B escape Key up 1B escape Key down 1B escape Key up 1B escape Key down 1B escape Key up 1B escape Key down 1B escape Key up 1B escape Key down 11E f5 Key up 11E f5

Hope that helps

comment:11 by SF/knakos, 13 years ago

Status: pendingnew

comment:12 by SF/knakos, 13 years ago

Oh, this is just far out.

For the application keys: your devices presses and releases some unknown key BEFORE pressing and releasing the correct keycode, f.ex.: down 0, up 0, down 154 (correct), up 154 (correct). This is in so many ways wrong. Even if it is a chorded key (e.g. like winkey-E in normal win32) I would expect to see: down X, down Y, up Y, up X. Brilliant :-(

The enter key though throws a chorded sequence (130, D, D, 130) which I belived I didn't have to code, but I obviously do.

Anyway, thank you very much for this, it's been illuminating. This will definitely be fixed in the next svn build.

(NOTE to myself: only log keystrokes when they're not simulated from panel to improve logging clarity)

comment:13 by SF/knakos, 13 years ago

Priority: normallow

comment:14 by SF/knakos, 13 years ago

fixed in internal sdl commit 31. testing version coming in next svn build.

comment:15 by sev-, 13 years ago

Status: newpending

comment:16 by sev-, 13 years ago

This tracker item is pending response by the submitter; we cannot continue processing it before that happens. As a consequence, its status has been set to "Pending". It will automatically revert to "Open" once a new comment is made to this item. If no response is made within 14 days, it will automatically be closed.

Thank you.

comment:17 by SF/knakos, 13 years ago

Please retest with this version: http://forums.scummvm.org/viewtopic.php?t=3916

comment:18 by SF/iancampbell79, 13 years ago

Thanks a lot. I have tested the mapping of all application buttons (including re-mapping them from inside a game), and all is working OK.

Many thanks once again to the whole team for there work on this great bit of software!

comment:19 by SF/knakos, 13 years ago

closing. thank you very much for the debugging output and testing.

comment:20 by SF/knakos, 13 years ago

Resolution: fixed
Status: pendingclosed

comment:21 by digitall, 21 months ago

Component: --Unset--Port: WinCE
Note: See TracTickets for help on using tickets.