Device Definition Structure
A device definition structure provides all the information about the input device available within the system. A device definition structure is defined by theISpDeviceDefinitiondata type.
typedef struct ISpDeviceDefinition { Str63 deviceName; ISpDeviceClass theDeviceClass; ISpDeviceIdentifier theDeviceIdentifier; UInt32 permanentId; UInt32 flags; UInt32 reserved1; UInt32 reserved2; UInt32 reserved3; } ISpDeviceDefinition;
Field Description
deviceName- A human readable string with the name of the device.
theDeviceClass- The general category of device--for example, joystick, keyboard, mouse, and so on. There are built-in values for the
theDeviceClassparameter, and device driver developers may create new ones. For a list of built-in values see "Built-in Device Categories" (page 3-18).theDeviceIdentifier- The registered four-character sequence that identifies the type of device.
- permanentId
- An ID that identifies the device even after rebooting. If the device driver cannot distinguish this device from other devices with the same value for
theDeviceIdentifier, this field should be 0.- flags
- Status flags.
- reserved1
- Reserved. Always set this field to 0.
- reserved2
- Reserved. Always set this field to 0.
- reserved3
- Reserved. Always set this field to 0.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help