VOGONS


OSX and .keylayout files

Topic actions

First post, by stuntgoat

User metadata
Rank Newbie
Rank
Newbie

I am stoked on DosBox .065

I need single key keyboard shortcuts for 2 to 4 letter character entries. besides the function keys.

ie when i press 'q' dos should recieve 'qunq'
I press 'w' the program recieves 'wm'
Ideally, only when capslock is on.

I can make a .keylayout file for OSX and choose a new layout using:

http://wordherd.com/keyboards/
It works in all programs i have tried so far[the terminal shell, text editing programs etc]; but not in dosbox.
I also tried Ukelele. Works, but not in dosbox.

I also have a Kensington Ci20 mouse and it can program keystroke patterns [like 'qunq' and 'wm'] with the extra 3 buttons as well as chords (2 buttons at the same time): it works fine in dosbox and everywhere else.

my .conf is attached.
my unit:
http://support.apple.com/specs/powermac/Power … t_Ethernet.html

256 MB
Type: SDRAM
Speed: PC100-222S

I read the read me; tried scancodes=true/false.

i tried to edit with keymapper but it appears not to have the functionality I need and would like to have with .keylayout files.

thanks for the great software.

cheers

Reply 1 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Works perfectly fine using the keymapper.
First klick on the key in the mapper and delete the mapping. Then klick
on the key that should appear first in your sequence, klick add and then
press the key (keyboard now!) that should trigger the sequence. Next
klick on the key that should appear as second in your sequence, klick
add, then the key again that should trigger the sequence. Continue like
that until you got all chars of your sequence. Klick save and exit the
keymapper.

Reply 2 of 4, by stuntgoat

User metadata
Rank Newbie
Rank
Newbie

thanks for the reply.

Keymapper is doing a similar thing as when I tried to edit the mapper.txt file to get what I wanted because the keymapper program was not working for me. Example- I am trying to use keymapper now:

key_w is bound to 'r' and 'e' (re)
when I get into dos prompt and press w I get

[nothing] no space or any letter/symbol

key_e is bound to nothing, I deleted all mappings
when I press e into dos prompt I get

w

key_r is bound to 'r' (normal condition)
when I press r I get

'r' and 'w' (rw)

.keylayout files would be best for me because I need to type text as well as commands into dos in the same 'game' [generic cadd]. And I would hope to use text normally and when shift lock is on all the keys would become key/text sequences.

Thanks much for your consideration.

Reply 3 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You're reverse in the logic 😉
What you see on the screen are the generated keys. If you want the key
x on your keyboard to produce w and e, klick on the w, klick add, hit the
x key (on your keyboard), then klick on the e key, klick add, hit the x key.
Then finally klick on the x and remove the x event (try it without that!).

Reply 4 of 4, by stuntgoat

User metadata
Rank Newbie
Rank
Newbie

Thanks wd.

I finally understand how it works.

between the ability to assign keystrokes from within the program on the function keys and assigning keystrokes with the numbers below with keymapper I am stoked.

!!