Basilisk II keycodes file for entire keyboard.

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
shelleyfrank
Space Cadet
Posts: 2
Joined: Thu Jan 30, 2014 2:01 pm

Basilisk II keycodes file for entire keyboard.

Post by shelleyfrank »

Hi! This is my firs post, and I need to apologise, since I have used this site quite a lot.

I am running OS8 in BasiliskII on my Linux Mint 13, and I've had endless trouble getting the USB keyboard to work properly. None of the available keycodes files worked for me, and trying to edit them came to erroneous outcomes. So I decided to rewrite the file to fit my personal needs by mapping the keys one by one using the Key Caps app in the Macintosh menu. It took me an whole day, as you can imagine, and I am very proud of my effort ;). All my keys are working as they should inside OS7 and OS8 except the PrtScn key, which is owned by the Linux system. These key mappings are for X.Org foundation only

I have a dell USB keybord, which is pretty standard, I guess. Being a Windows keyboard, it has a "windows" key between the Ctrl and Alt keys. I have mapped these three keys to the mac keyboard keys viz. Ctrl. Opt. Command and they work on both sides of the spacebar.

I am adding the file content below the blue line at the end of this post. You can copy and paste it into a new txt document and save it as keycodes.txt or simply keycodes without the txt extention, or to whatever name you please - BasiliskII isn't fussy about the file name in my experience. The keycodes are especially handy when you want to use photoshop, where the keyboard is in constant use.

I hope it will be of use to anyone. Enjoy.

Michael

Here is my system specs:

-Linux Version-
Kernel : Linux 3.2.0-58-generic (i686)
Compiled : #88-Ubuntu SMP Tue Dec 3 17:40:43 UTC 2013
C Library : Unknown
Default C Compiler : GNU C Compiler version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Distribution : Linux Mint 13 Maya


-Processor-
Name : AMD Athlon(tm) XP 2600+
Family, model, stepping: 6, 10, 0 (AMD Athlon XP/MP (Barton))
Vendor : AuthenticAMD
-Configuration-
Cache Size : 512kb
Frequency : 1916.35MHz
Byte Order : Little Endian


-Keybord-
Brand :DELL
Type :USB Keybord




____________________________________________________________________________

#Beginning of file
#------------------------------------------------------------------------------------
#
#BasiliskII Keycodes file by shelleyfrank 22/07/2013
#
#This is a complete keyboard mapping for BasiliskII installed on Linux for USB keyboard.
#
#------------------------------------------------------------------------------------
#
# Basilisk II (C) 1997-2005 Christian Bauer (C)
#
# X.Org
#
The X.Org Foundation

9 53 # Esc
67 122 # F1
68 120 # F2
69 99 # F3
70 118 # F4
71 96 # F5
72 97 # F6
73 98 # F7
74 100 # F8
75 101 # F9
76 109 # F10
95 103 # F11
96 111 # F12
49 10 # `
10 18 # 1
11 19 # 2
12 20 # 3
13 21 # 4
14 23 # 5
15 22 # 6
16 26 # 7
17 28 # 8
18 25 # 9
19 29 # 0
20 27 # -
21 24 # =
22 51 # Backspace
23 48 # Tab
24 12 # Q
25 13 # W
26 14 # E
27 15 # R
28 17 # T
29 16 # Y
30 32 # U
31 34 # I
32 31 # O
33 35 # P
34 33 # [
35 30 # ]
36 36 # Return
66 57 # Caps Lock
38 0 # A
39 1 # S
40 2 # D
41 3 # F
42 5 # G
43 4 # H
44 38 # J
45 40 # K
46 37 # L
47 41 # ;
48 39 # '
52 6 # Z
53 7 # X
54 8 # C
55 9 # V
56 11 # B
57 45 # N
58 46 # M
59 43 # ,
60 47 # .
61 44 # /
51 42 # \
87 83 # KP 1
88 84 # KP 2
89 85 # KP 3
77 71 # Num Lock
63 67 # KP *
106 75 # KP /
82 78 # KP -
79 89 # KP 7
80 91 # KP 8
81 92 # KP 9
86 69 # KP +
83 86 # KP 4
84 87 # KP 5
85 88 # KP 6
90 82 # KP 0
91 65 # KP .
37 54 # Ctrl Left
64 55 # Alt Left
50 56 # Shift Left
133 58 # Windows Logo Left
65 49 # Space
108 55 # Alt Right
134 58 # Windows Logo Right
105 54 # Ctrl Right
62 56 # Shift Right
78 107 # Scroll Lock
94 50 # International
112 116 # Page Up
117 121 # PAGE DOWN
104 76 # KP Enter
111 62 # ARROW UP
113 59 # ARROW LEFT
114 60 # ARROW RIGHT
116 61 # ARROW DOWN
118 114 # Insert
119 117 # Delete
115 119 # End
110 115 # HOME
127 113 # Pause
135 21 # Menu
107 5 # PrtScn
#End of file
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Basilisk II keycodes file for entire keyboard.

Post by adespoton »

Thanks for sharing!

I'm thinking we should really have a place on the wiki for (properly labeled) keycodes files, as there are a few configs that people might want, and one person's day of mapping everything is more than enough work to go through.

Any wiki admins want to weigh in?
User avatar
24bit
Forum All-Star
Posts: 1424
Joined: Wed Nov 11, 2009 5:47 pm
Location: Germany

Re: Basilisk II keycodes file for entire keyboard.

Post by 24bit »

Thanks for your work from my side too!
I was tinkering a bit with key codes in the past, so I´m aware of the frustration messing it up.
Great you could make it finally.
User avatar
ClockWise
Site Admin
Posts: 4397
Joined: Mon May 20, 2002 4:37 am
Location: Uiwang

Re: Basilisk II keycodes file for entire keyboard.

Post by ClockWise »

That's a great idea. I'll try to add a wiki page with this content in the near future.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Basilisk II keycodes file for entire keyboard.

Post by Ronald P. Regensburg »

References in the wiki to keycodes files should be properly labeled. With this file I do not know exactly yet how to label it. The OP Michael (shelleyfrank) calls it "Basilisk II keycodes file for entire keyboard".

It works with Linux Mint. Will it work for all Linux distros? I noticed similarities with the X11 server mappings in the original BasiliskII keycodes file. It works with a Windows keyboard, I suppose it will work with Windows keyboards only. It works with an USB keyboard, I suppose it will work with all Windows keyboards, like keyboards on PC laptops.

I cannot test it on my Mac machines. Maybe it should be called something like "Extended BasiliskII keycodes file for Linux and Windows keyboard"?

B.T.W.: If it works with BasiliskII, it will also work with SheepShaver.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Basilisk II keycodes file for entire keyboard.

Post by adespoton »

Extended keycodes file for Dell US (? key) keyboard under X11 would probably be a good name. The OS itself shouldn't matter too much.
shelleyfrank
Space Cadet
Posts: 2
Joined: Thu Jan 30, 2014 2:01 pm

Re: Basilisk II keycodes file for entire keyboard.

Post by shelleyfrank »

Just one correction.. The Dell keyboard has a "menu" key on the bottom right in this order: spacebar, alt, windows, menu, Ctrl. I couldn't find a use for it, so I left out. I have now correctly mapped it to the `(~) key on the mac key caps keyboard which doesn't have a representative key on the Dell keyboard. So here goes..

Keycodes file for Dell US USB keybord Linux.



#Beginning of file
#------------------------------------------------------------------------------------
#
#BasiliskII Keycodes file by shelleyfrank 22/07/2013
#
#This is a complete keyboard mapping for BasiliskII installed on Linux for USB keyboard.
#
#------------------------------------------------------------------------------------
#
# Basilisk II (C) 1997-2005 Christian Bauer (C)
#
# X.Org
#
The X.Org Foundation

9 53 # Esc
67 122 # F1
68 120 # F2
69 99 # F3
70 118 # F4
71 96 # F5
72 97 # F6
73 98 # F7
74 100 # F8
75 101 # F9
76 109 # F10
95 103 # F11
96 111 # F12
49 10 # `
10 18 # 1
11 19 # 2
12 20 # 3
13 21 # 4
14 23 # 5
15 22 # 6
16 26 # 7
17 28 # 8
18 25 # 9
19 29 # 0
20 27 # -
21 24 # =
22 51 # Backspace
23 48 # Tab
24 12 # Q
25 13 # W
26 14 # E
27 15 # R
28 17 # T
29 16 # Y
30 32 # U
31 34 # I
32 31 # O
33 35 # P
34 33 # [
35 30 # ]
36 36 # Return
66 57 # Caps Lock
38 0 # A
39 1 # S
40 2 # D
41 3 # F
42 5 # G
43 4 # H
44 38 # J
45 40 # K
46 37 # L
47 41 # ;
48 39 # '
52 6 # Z
53 7 # X
54 8 # C
55 9 # V
56 11 # B
57 45 # N
58 46 # M
59 43 # ,
60 47 # .
61 44 # /
51 42 # \
87 83 # KP 1
88 84 # KP 2
89 85 # KP 3
77 71 # Num Lock
63 67 # KP *
106 75 # KP /
82 78 # KP -
79 89 # KP 7
80 91 # KP 8
81 92 # KP 9
86 69 # KP +
83 86 # KP 4
84 87 # KP 5
85 88 # KP 6
90 82 # KP 0
91 65 # KP .
37 54 # Ctrl Left
64 55 # Alt Left
50 56 # Shift Left
133 58 # Windows Logo Left
65 49 # Space
108 55 # Alt Right
134 58 # Windows Logo Right
105 54 # Ctrl Right
62 56 # Shift Right
78 107 # Scroll Lock
94 50 # International
112 116 # Page Up
117 121 # PAGE DOWN
104 76 # KP Enter
111 62 # ARROW UP
113 59 # ARROW LEFT
114 60 # ARROW RIGHT
116 61 # ARROW DOWN
118 114 # Insert
119 117 # Delete
115 119 # End
110 115 # HOME
127 113 # Pause
135 50 # Menu
107 5 # PrtScn
#End of file
Post Reply