View Single Post
Posts: 203 | Thanked: 125 times | Joined on Jan 2011
#2978
Originally Posted by marmistrz View Post

About kbd mapping: Maybe some kbd mapping expert could make a step by step tutorial how to create kbd mapping. I dont know where all the strange numbers & names come from, and i Bet many of users too!
Its easy to create a KBD Mapping. Just Download one and edit it as you want
Lets have an example
Avatar KBD Mapping:
gconftool-2 --set --type int /apps/preenv/Avatar/enable_dpad 1
#Now lets config where is the Analog pad with qweasdzxc buttons
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_center_mouse 0 #use mouse 0 (screen touch)
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_center_x 120
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_center_y 357
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_n_key 119
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_n_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_n_x 120
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_n_y 300
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_ne_key 101
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_ne_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_ne_x 178
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_ne_y 302
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_e_key 100
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_e_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_e_x 180
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_e_y 358
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_se_key 99
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_se_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_se_x 180
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_se_y 410
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_s_key 120
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_s_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_s_x 120
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_s_y 411
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_sw_key 122
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_sw_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_sw_x 61
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_sw_y 411
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_w_key 97
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_w_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_w_x 60
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_w_y 357
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_nw_key 113
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_nw_mouse 0
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_nw_x 62
gconftool-2 --set --type int /apps/preenv/Avatar/dpad_key_nw_y 302

# Now lets add a normal key
gconftool-2 --set --type int /apps/preenv/Avatar/key_112_key 112 # p (key 112 is the p)
gconftool-2 --set --type int /apps/preenv/Avatar/key_112_mouse 2
gconftool-2 --set --type int /apps/preenv/Avatar/key_112_x 738
gconftool-2 --set --type int /apps/preenv/Avatar/key_112_y 318

NOTES: keyboard keys
306 113 119 101 114 116 121 117 105 111 112 44 8
313 97 115 100 102 103 104 106 107 108 46 273 271
304 122 120 99 118 98 110 109 32 276 274 275

X,Y are the coordinates. How to know them? Start the game and take a screenshot (ctr+shift+p) if i remember. Then transfer it to your pc and use paint to see the coordinates of the pixel you want.

Avatar is the name of the executable and not the game name.

Some KBD mapping files you can find in this threat
http://talk.maemo.org/showthread.php...313#post934313
 

The Following 3 Users Say Thank You to hadjistyllis For This Useful Post: