Keyboard layout
#1
My keyboard is behaving strangely. I'm using a Mac with os x 10.6.3. When I loaded assaultcube it prompted to enter my nickname. Well I couldn't do it, coz the layout seems to be completely broken. Instead of QWERTY letters I get a strange combination of letters, numbers and symbols. Changing the layout with cmd+space does't help. And when I try to edit my controls, it says that I can't use my wsad keys. I'm really at a loss what to do with it=(
Thanks given by:
#2
Btw if it helps - I've got a hackintosh via iAtkos, a Logitech USB keyboard and Russian/US layout
Thanks given by:
#3
First off - you should've just edited your own post!

What does the game say your locale is? (2nd line of log)
What results do you get when you run
xev|egrep "code|button"
and press the WASD-keys?! Here's what I get:
state 0x4010, keycode 25 (keysym 0x77, w), same_screen YES,
    state 0x4010, keycode 38 (keysym 0x61, a), same_screen YES,
    state 0x4010, keycode 39 (keysym 0x73, s), same_screen YES,
    state 0x4010, keycode 40 (keysym 0x64, d), same_screen YES,
If it doesn't match up with your keyboard-repsonses you will have to create your own keymap.cfg and put it into your game-home config/-directory (use the launcher to access your "personal files" (I think that's the menu term used)).
Thanks given by:
#4
Here's what I get:
Macintosh:~ kirillseva$ xev|egrep "code|button"
    state 0x0, keycode 21 (keysym 0x6c3, Cyrillic_tse), same_screen YES,
    state 0x0, keycode 21 (keysym 0x6c3, Cyrillic_tse), same_screen YES,
    state 0x0, keycode 9 (keysym 0x6d9, Cyrillic_yeru), same_screen YES,
    state 0x0, keycode 9 (keysym 0x6d9, Cyrillic_yeru), same_screen YES,
    state 0x0, keycode 8 (keysym 0x6c6, Cyrillic_ef), same_screen YES,
    state 0x0, keycode 8 (keysym 0x6c6, Cyrillic_ef), same_screen YES,
    state 0x0, keycode 10 (keysym 0x6d7, Cyrillic_ve), same_screen YES,
    state 0x0, keycode 10 (keysym 0x6d7, Cyrillic_ve), same_screen YES,
It's for WSAD, 1-time pressed (seems like I get 2 signals for 1 key)
Btw I have no keymap.cfg in the folder...
Thanks given by:
#5
(13 Nov 10, 10:15PM)holodila Wrote: Btw I have no keymap.cfg in the folder...

right click on assaultcube and then press "show package contents"
Thanks given by:
#6
Yes, then copy the vanilla-file over to your personal files (game-home) and edit there.
It's normal to get 2 messages - on for KEY_DOWN, one for KEY_UP - I just cleaned up my output.
You will need to do this with basically ALL the keys:
Take note of the keysym-value - it's HEX, e.g. for your W 0x6c3 - then transform into DEC - 0x6c3 == 1731.
If this is available on a Mac you might have an easier time of it by using :
dumpkeys --long-info
This might require superuser-permissions to access /dev/console .. but I'm not familiar with the Mac OS X in that detail.
Thanks given by: