tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: two keys with same keycode on ADB



On Tue, May 10, 2022 at 05:21:49AM -0000, Michael van Elst wrote:
> https://developer.apple.com/documentation/coreservices/1471510-keyboard_selectors

That fits the headers in MacOSX CarbonCore.framework (look for Gestalt.r),
but not the value we hae in adbsys.h.

We have (since 27 years for mac68k !)
#define ADB_STDKBD	1
#define ADB_EXTKBD	2

The first defines from MacOSX are:
#define gestaltMacKbd                                   1
#define gestaltMacAndPad                                2
#define gestaltMacPlusKbd                               3                                       /*  OBSOLETE: This pre-ADB keyboard is not supported by any Mac OS X hardware and this value now means gestaltUnknownThirdPartyKbd  */
#define gestaltUnknownThirdPartyKbd     3                                       /*  Unknown 3rd party keyboard.  */
#define gestaltExtADBKbd                                4
#define gestaltStdADBKbd                                5

Hence it seems gestalt keyboard type is noy handler id. I still wonder 
where our values are coming from.

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index