remaping keyboard for classic OS (7.5, etc)

2 replies [Last post]
iDweeb's picture
Offline
Joined: Dec 19 2003
Posts: 103

Hi, everyone, I'm planning on (eventually) doing a hardware/software mod where I will need to remap an apple extended keyboard to a custom arrangement.

Does anyone have some suggestions on good sites for learning how to use resedit and the like to do it?

thanks in advance!

iDweeb

__________________

Do you trust me with a PC and a sledgehammer?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Zydeco's picture
Offline
Joined: Dec 26 2003
Posts: 48
ResEdit

You can easily edit keymaps with ResEdit.
Make a copy of the keymap file (it's inside the System file) somewhere else to edit it, and open it with ResEdit.
The itlk resource doesn't need to be changed.
kcs# and kcs4 store the icon.
KCHR stores the actual keymap, you can edit it graphically. Pressing the modifier keys (caps lock, shift, option, etc) will switch tables and show you the maps for the different modifiers.
You can choose "View As" from the KCHR menu for it to show the keys for different keyboard models (normal, extended, etc).
The mapping is changed by draggin the characters from the top left table to the bottom part, which is arranged like a keyboard. The top right table is also the keyboard mapping, but arranged as keycodes.

ResEdit KCHR Editor

To edit the kcs4, you must create a new 'ics4' resource, and open it using the hex editor. Paste the data from the original kcs4 icon there, then close it and double-click it, so it will open with the icon editor. Then you can modify it, close it, open it with the hex editor, and copy its hex data back to the kcs4 resource. You can do the same with the kcs#, this time the new type is 'ics#'

You should also change the name of both the file and the KCHR resource.

__________________

So this is how PowerPC dies... with thunderous applause

iDweeb's picture
Offline
Joined: Dec 19 2003
Posts: 103
Thank you

Thank you, kcs4.

I didn't want anyone to have to do my "homework "for me here.I feel a little bad Sad I would have been happy with just some reccomendations for good resedit sites out there so I could look, but you are very kind.

I appreciate your detailed help!!! Smile

__________________

Do you trust me with a PC and a sledgehammer?