![]() |
gestaltKeyboardType |
Header: Gestalt.h |
enum { gestaltKeyboardType = 'kbd ', gestaltMacKbd = 1, gestaltMacAndPad = 2, gestaltMacPlusKbd = 3, gestaltExtADBKbd = 4, gestaltStdADBKbd = 5, gestaltPrtblADBKbd = 6, gestaltPrtblISOKbd = 7, gestaltStdISOADBKbd = 8, gestaltExtISOADBKbd = 9, gestaltADBKbdII = 10, gestaltADBISOKbdII = 11, gestaltPwrBookADBKbd = 12, gestaltPwrBookISOADBKbd = 13, gestaltAppleAdjustKeypad = 14, gestaltAppleAdjustADBKbd = 15, gestaltAppleAdjustISOKbd = 16, gestaltJapanAdjustADBKbd = 17, gestaltPwrBkExtISOKbd = 20, gestaltPwrBkExtJISKbd = 21, gestaltPwrBkExtADBKbd = 24, gestaltPS2Keyboard = 27, gestaltPwrBkSubDomKbd = 28, gestaltPwrBkSubISOKbd = 29, gestaltPwrBkSubJISKbd = 30, gestaltPwrBkEKDomKbd = 195, gestaltPwrBkEKISOKbd = 196, gestaltPwrBkEKJISKbd = 197, gestaltUSBCosmoANSIKbd = 198, gestaltUSBCosmoISOKbd = 199, gestaltUSBCosmoJISKbd = 200, gestaltPwrBk99JISKbd = 201 };
The selector you pass to the Gestalt function to determine the type of the keyboard.
If the Apple Desktop Bus (ADB) is in use, there may be multiple keyboards or other ADB devices attached to the machine. The gestaltKeyboardType selector identifies only the type of the keyboard on which the last keystroke occurred.
You cannot use this selector to find out what ADB devices are connected. For that, you can use the Apple Desktop Bus Manager. Note that the ADB keyboard types described by Gestalt do not necessarily map directly to ADB device handler IDs.
Future support for the gestaltKeyboardType selector is not guaranteed. To determine the type of the keyboard last touched without using Gestalt, check the system global variable KbdType.
If the Gestalt Manager does not recognize the keyboard type, it returns an error.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)