Skip to main content
Home▸ Forums▸ 68kMLA▸ PS2 Keyboard on Mac Plus — #57
Post #57 by bbraun
Source Forum68kMLA
CategoryTroubleshooting
Post DateTue, 8 Oct 2013 - 05:38
Original URLhttps://68kmla.org/bb/threads/ps2-keyboard-on-mac-plus.28252/
Post
A few keys on the numeric keypad do unexpected things: The numbers, decimal point, enter key, and the - minus sign work. Num lock does nothing, which is fine. / (forward slash) functions as up arrow. * functions as right arrow, + functions as left arrow.
Actually, does anyone have a physical Plus keyboard or separate keypad? I'm interested in knowing what these buttons do on the real keyboard.

I'm returning the codes defined in Guide to the Macintosh Family Hardware, but they are the same codes as the keys you're getting (keypad / keycode is 0x1B, which is also the same as up arrow). The keypad behaves a little differently in that it returns a special code to the OS when a keypad key event occurs (0x79), then the OS sends an Instant query command, and then the keypad returns the depressed key. This is what I'm doing, and it seems to be doing what it's supposed to, just what's supposed to happen is a bit odd.

Can you try pressing an upper case keypad forward slash? So hold down shift, press keypad's forward slash key, release forward slash key, release shift. That generates the forward slash for me. According to my reading of Guide to the Macintosh Family Hardware, this is how the physical keypads behave, but again, I don't have one so don't know for sure.

I could map these to their non-keypad equivalent keys, but I'm a little concerned about breaking compatibility with software that cares about the physical position of keys, such as games.

Edit: oh, I have a workaround for the problem of needing a reset when first powered on. I haven't tracked down the source of the cause yet, but I know where it is happening, and can reset from there, since it never recovers from that error condition.