:blink:
total newb here, still waiting for my f-200 to arrive, I think i understand everything about dosbox EXCEPT the mapper.txt...it is
SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO confusing
For example, i know this version includes a default-mapper.txt as an example, and a virtual_keyboard_mapper.txt for virtual keyboard.
1) MOUSE
In Dosbox.conf it has this in the comments under SDL: "# sensitivity -- Mouse sensitivity."
But in the readme, it says "gp2x_mouse_speed = 0" will turn on mouse sensitivity..which is it? Both? Why does the comments section in dosbox.conf not mention this?
Also it mentions that you need to add "hand_leftclick" and "hand_rightclick" to mapper.txt in addition to regular keys. What I don't understand here too is if you turn on mouse, does that mean you no longer need to map arrow keys on keyboard to gp2x? Like a point-and-click game such as enhanced space quest 1...I would only need to bind the mouse left click and right click right?
would an acceptable mapper.txt for a total point-and-click game like that simply be: (in addition to adding "gp2x_mouse_speed = 0" to SDL of dosbox.conf)
CODE
hand_leftclick "key 256"
hand_rightclick "key 257"
key_esc "key 264"
I would only need those keys since everything can be done in a game like enhanced space quest 1 with just a mouse and the ESC key right? I could get away with a 3-line mapper.txt??
2) VIRTUAL KEYBOARD
I am very confused by the whole virtual keyboard thing....
If the GP2xkeys only correspond to keys 256-274, why does the default-mapper.txt have so many other key numbers for mapping? That is probably the most confusing aspect for me. For example it lists key_rctrl mapped to "key 305"...but there is no key 305 on the gp2x right? Is it there for the sake of the virtual keyboard? And if so, why does the default-mapper.txt not include a value for turning ON the keyboard via "hand_g2virtkey"???? Unless it's "hand_mapper" which is in there.... but the readme says the value for turning on virtual keyboard is "hand_g2virtkey"??? Im SO confused :unsure:
Ok so you map a GP2x Key to turn it on using "hand_g2virtkey" and then copy paste the virtual_keyboard_mapper.txt contents into your mapper.txt file right?
Let me see if I get all this, I would start with a base mapping of the following GP2x keys:
UP (0) key 256
UPLEFT (1) key 257
LEFT (2) key 258
DOWNLEFT (3) key 259
DOWN (4) key 260
DOWNRIGHT (5) key 261
RIGHT (6) key 262
UPRIGHT (7) key 263
START (8) key 264
SELECT (9) key 265
L (10) key 266 (Values for the shoulders may be switched)
R (11) key 267
A (12) key 268
B (13) key 269
Y (14) key 270
X (15) key 271
VOLUP (16) key 272
VOLDOWN (17) key 273
STICK CLICK (18) key 274
Once you map those keys to a keyboard key, like for example key 256 (up) to key_up... and make sure to map a key to turn on virtual keyboard by using "hand_g2virtkey",
Then underneath that, you'd paste the contents of virtual_keyboard_mapper.txt right? and that's it?
My brain is gonna melt
For example, why is it in every example of a mapper.txt it assigns:
key_kp_1 "key 257"
I assume kp_1 is the "1" on the numlock right? In which case that is down-left, but key 257 is UP-left...so why map the down-left in a numlock pad to UP-left???
In the duke3d config example the mapper.txt has the following:
CODE
key_up "key 256"
key_left "key 257"
key_left "key 258"
key_left "key 259"
key_down "key 260"
key_right "key 261"
key_right "key 262"
key_right "key 263"
Why does it assign 3 gp2x keys to "key_left"? Why does this particular mapping ignore up-left etc.?
3) MOD/ STICK CLICK ON F200
What is "mod" ?? It seems like a shift function right? It is assigned to 274 (stick click) in the virtual_keyboard_mapper.txt, and the readme says I cant change anything in the virtual_keyboard_mapper.txt or it will not work. The f-200 does not have a stick click function right? so how would I use mod?