map keys on N96

Subforum for discussion and help with ScummVM's Symbian (mobile phones, etc) ports

Moderator: ScummVM Team

Post Reply
ilor_at
Posts: 3
Joined: Mon Feb 09, 2009 8:26 am

map keys on N96

Post by ilor_at »

Hello,

at first:
Great Application!!! I love it!!

Just one problem:
I want to mab the Center Joystick button as a left click.

It seems to work and shows a "." as mapped key but no change.
Is it possible to map this key??

Please Help
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

That key will act as a joystick in the current config. So I guess I should change that. I think you can remap all the keys in 'C' mode.
ilor_at
Posts: 3
Joined: Mon Feb 09, 2009 8:26 am

Post by ilor_at »

In the 'C' mode i am not able to map a key because i cannot move the cursor to the map button...

thanks althrough
ilor_at
Posts: 3
Joined: Mon Feb 09, 2009 8:26 am

Solved

Post by ilor_at »

I solved the Problem with the Program MagicKey to map the Key...

You'll need this:

* - 42
# - 127
Number 0 - 48
Number 1 - 49
Number 2 - 50
Number 3 - 51
Number 4 - 52
Number 5 - 53
Number 6 - 54
Number 7 - 55
Number 8 - 56
Number 9 - 57
Left Soft Key - 164
Right Soft key - 165
Green Key - 196
Red Key - 197
Pencil - 18
Backspace(C)-Key - 1
Menu Key - 180
Multimedia Menu Key - 186
"Joystik Left" - 14
"Joystik Right" - 15
"Joystik Up" - 16
"Joystik Down" - 17
[OK]-Key - 167
Gallery Key - 230
Volume Up - 162
Volume Down - 163
Camera key Half Pressed - 226
Camera Key Full Pressed - 227
Camera Shutter open on n95-1 (classic) - 231
Power Off Key - 166
Open Slider - 168
Close Slider - 169
Open Multimedia Keys - 172
Close Multimedia Keys - 173
Multimedia Key Pause/Play - 182
Multimedia Key Stop - 183
Multimedia Key Forwards - 184
Multimedia Key Backwards - 185

cu
thenoise
Posts: 8
Joined: Fri Feb 13, 2009 1:01 pm

Post by thenoise »

hi
I have an N96 as well. Do either of you have a problem with volume? I've pushed the sliders to the maximum in scummvm but still the audio is barely audible.
I've had a look at settings on the phone but can't seem to change it.
Any suggestions?
Thanks.
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

Green key! Arrow up down to change volume Green Key.. and read the instructions. ;-)
wolf
Posts: 2
Joined: Tue Oct 14, 2008 11:26 am

Post by wolf »

Anotherguest wrote:Green key! Arrow up down to change volume Green Key.. and read the instructions. ;-)
You also need to have scaling enabled, or ScummVM will try to scroll the screen (even if it fits the phone display).
LennartB
Posts: 1
Joined: Mon Mar 23, 2009 7:05 pm

Re: Solved

Post by LennartB »

ilor_at wrote:I solved the Problem with the Program MagicKey to map the Key...

You'll need this:

* - 42
# - 127
Number 0 - 48
Number 1 - 49
Number 2 - 50
Number 3 - 51
Number 4 - 52
Number 5 - 53
Number 6 - 54
Number 7 - 55
Number 8 - 56
Number 9 - 57
Left Soft Key - 164
Right Soft key - 165
Green Key - 196
Red Key - 197
Pencil - 18
Backspace(C)-Key - 1
Menu Key - 180
Multimedia Menu Key - 186
"Joystik Left" - 14
"Joystik Right" - 15
"Joystik Up" - 16
"Joystik Down" - 17
[OK]-Key - 167
Gallery Key - 230
Volume Up - 162
Volume Down - 163
Camera key Half Pressed - 226
Camera Key Full Pressed - 227
Camera Shutter open on n95-1 (classic) - 231
Power Off Key - 166
Open Slider - 168
Close Slider - 169
Open Multimedia Keys - 172
Close Multimedia Keys - 173
Multimedia Key Pause/Play - 182
Multimedia Key Stop - 183
Multimedia Key Forwards - 184
Multimedia Key Backwards - 185

cu
could you tell me how exactly you did this? I also want my central pad to be left mouse click :)

thanks in advance
AntAreS24
Posts: 2
Joined: Thu Jul 30, 2009 9:16 am

Post by AntAreS24 »

There is another way to get the key working:

Using ilor_at mapping you can get the value for the key you want:
* = 42 (dec) = 2A (hex)
# = 127 (dec) = 7F (hex)
etc.

You can use your windows calc to do the conversion by by using the scientific version of it. (select DEC, then enter the value you want to convert, then select HEX)

Now browse in your phone for where the scummvm is installed. for me it's in c:\Data\scummvm\
Edit the file called "scummvm.ini".

Scroll down in the file until you found:
action_mapping=0000 0000 0000 0000 0000 002a 0023 0039 0000 0000 0000 0000 0000 0000 0000 0000 0030 0000 0000

each series of 0000 correspond to a action (check in the game to get the list).

I'm interested in the action "5: right click" as the right soft key doesn't work for me.
So using the same method as above I get: Right Soft key - 165 (dec) = A5 (hex)
So you replace the fifth series of 0000 with value:
action_mapping=0000 0000 0000 0000 00A5 002a 0023 0039 0000 0000 0000 0000 0000 0000 0000 0000 0030 0000 0000

With this, you will have:
left soft key (default) for left click.
right soft key for right click.
* game menu.
0 scummvm menu.
# console.

Cheers.
Rapp Scallion
Posts: 9
Joined: Fri Sep 07, 2007 2:03 pm

Post by Rapp Scallion »

I tried mapping the center button (the OK button) as left click on my n82, but no success. It shows up as "world 7" in the mapping list. Would love to know if there's any way of getting it to work.
AntAreS24
Posts: 2
Joined: Thu Jul 30, 2009 9:16 am

Post by AntAreS24 »

Rapp Scallion wrote:I tried mapping the center button (the OK button) as left click on my n82, but no success. It shows up as "world 7" in the mapping list. Would love to know if there's any way of getting it to work.
In the N96, the OK key is value [OK]-Key - 167 --> A7

Try that in the file.
Rapp Scallion
Posts: 9
Joined: Fri Sep 07, 2007 2:03 pm

Post by Rapp Scallion »

Didn't work. So I decided to try the rc. Now it works, as it's the ok-button as standard left click button :)
Post Reply