Dosbox reading keys wrong after 8.10 upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dosbox (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: dosbox
Ubuntu 8.10
Yup I have the same thing going on. Just upgraded to ibex beta a few days ago. It's really pissing me off that I can't finish my game of crystal caves.
Every other key seems fine except the dedicated arrow keys.
In an outside? terminal (ctrl+ alt+ f2) use the command showkey to show the keycodes for your keyboard. I get the following:
key_up "key 103"
key_left "key 105"
key_down "key 108"
key_right "key 106"
-------
Using the dosbox keyboard mapper (ctrl + f1) (in dosbox) and deleting the initial binds and defining new binds results in:
Event:key_up
Bind: Key print screen
Event:key_left
Bind: Key right alt
Event:key_down
Bind: Key unknown key
Event:key_right
Bind: Key unknown key
-------
So I need to get at the dosbox keymapper file. I found:
http://
That basically says to use this command in dosbox:
[CODE]CONFIG -writeconf dosbox.conf[/CODE]
That results in a dosbox.conf file which resides in your home directory. After restarting dosbox it makes a file called mapper.txt in your home directory. From the mapper.txt file you find the keycodes:
key_up "key 316"
key_left "key 307"
key_down "key 0"
key_right "key 0"
Neither the key_up or the key_left codes match the showkey codes.
Showkey for right alt (which is bound to the left arrow in dosbox) is actually key 100. For key up the code is key 99.
So, maybe this will be worked out in the final release, otherwise it would be nice to have this worked on.
Changed in dosbox: | |
status: | New → Confirmed |
http:// ubuntuforums. org/showthread. php?t=947416