[SDL] Weird iBook key codes in SDL_QuartzKeys.h - still relevant?

Christian Walther cwalther at gmx.ch
Sun Aug 6 09:00:53 PDT 2006


In the keyboard handling code of the Quartz backend of SDL 1.2, at the 
bottom of SDL_QuartzKeys.h, there is this:

/* Wierd, these keys are on my iBook under Mac OS X */
#define QZ_IBOOK_ENTER		0x34
#define QZ_IBOOK_LEFT		0x3B
#define QZ_IBOOK_RIGHT		0x3C
#define QZ_IBOOK_DOWN		0x3D
#define QZ_IBOOK_UP			0x3E

ENTER = 0x34 is OK (this is just the keyboard enter key that all Mac 
portables have), but the rest looks *very* strange to me, because these 
virtual key codes are already taken by other keys: 0x3B is left ctrl, 
0x3C is right shift, 0x3D is right option, and 0x3E is right ctrl.

This code originates from the very first revision of this file by 
Darrell Walisser from 2001, time of Mac OS X 10.0. Does anyone know 
whether this code is still relevant in the versions of Mac OS X we 
support (>= 10.2)? Or does anyone have one of the iBooks that were 
around in June 2001 (probably a colored one, the first white one was 
only introduced in May 2001) to test this? It seems to me like this 
might just have been a workaround for a bug in 10.0, or even Public Beta 
or something.

It's also still present in 1.3 in SDL_cocoakeys.h, but I suppose that's 
just because Sam doesn't know the answer to my question either.

  -Christian





More information about the SDL mailing list