#include <IOKit/hidsystem/IOHIDTypes.h>
IOKit/hidsystem/IOHIDTypes.h
This should be removed, but is being used by others
structevsioKeymapping
| int | size | |
| char * | mapping |
typedefNXKeyMapping
typedef struct evsioKeymapping NXKeyMapping;
structevsioMouseScaling
| int | numScaleLevels | |
| short[20] | scaleThresholds | |
| short[20] | scaleFactors |
typedefNXMouseScaling
typedef struct evsioMouseScaling NXMouseScaling;
enumNXMouseButton
| NX_OneButton | 0 | |
| NX_LeftButton | 1 | |
| NX_RightButton | 2 |
typedefNXMouseButton
typedef enum NXMouseButton NXMouseButton;
typedefIOFixedPoint32
typedef struct __IOFixedPoint32 IOFixedPoint32;
typedefNXEventSystemInfoType
Generic query max size and typedefs.
The maximum size is selected to support anticipated future extensions
of request flavors. Certain flavors planned for future releases may
require roughtly 800 ints to represent. We allow a little extra, in
case further growth is needed.
typedef int *NXEventSystemInfoType
typedefNXEventSystemInfoData
typedef int NXEventSystemInfoData[NX_EVS_INFO_MAX]
macroNX_EVS_DEVICE_INTERFACE_SERIAL_ACE
#define NX_EVS_DEVICE_INTERFACE_SERIAL_ACE 4
For PC serial mice
macroNUM_SUPPORTED_INTERFACES
Note! if any new interface types are added above, the following
definition of the number of interfaces supported must reflect this.
This is used in the libkeymap project (storemap.c module) which needs
to be cognizant of the number of new devices coming online
via support for heterogeneous architecture platforms.
e.g., PCs, HP's HIL, Sun's Type5 keyboard,...
#define NUM_SUPPORTED_INTERFACES (NX_EVS_DEVICE_INTERFACE_TYPE5 + 1)
macroNX_EVS_DEVICE_TYPE_KEYBOARD
#define NX_EVS_DEVICE_TYPE_KEYBOARD 1
structNXEventSystemDevice
| int | interface | NeXT, ADB, other |
| int | interface_addr | Device address on the interface |
| int | dev_type | Keyboard, mouse, tablet, other |
| int | id | manufacturer's device handler ID |
typedefNXEventSystemDevice
typedef struct NXEventSystemDevice NXEventSystemDevice;
structNXEventSystemDeviceList
| NXEventSystemDevice[16] | dev |
typedefNXEventSystemDeviceList
typedef struct NXEventSystemDeviceList NXEventSystemDeviceList;
macroNX_EVS_DEVICE_INFO
#define NX_EVS_DEVICE_INFO "Evs_EventDeviceInfo"
macroNX_EVS_DEVICE_INFO_COUNT
#define NX_EVS_DEVICE_INFO_COUNT (sizeof (NXEventSystemDeviceList) / sizeof (int))
enumEvCmd
| EVNOP | 0 | Cursor state |
| EVHIDE | 1 | |
| EVSHOW | 2 | |
| EVMOVE | 3 | |
| EVLEVEL | 4 |
macroEV_SCREEN_MIN_BRIGHTNESS
#define EV_SCREEN_MIN_BRIGHTNESS 0
macroEV_SCREEN_MAX_BRIGHTNESS
#define EV_SCREEN_MAX_BRIGHTNESS 64
macroEV_SCALE_BRIGHTNESS
Scale should lie between MIN_BRIGHTNESS and MAX_BRIGHTNESS
#define EV_SCALE_BRIGHTNESS(scale, datum) ((((UInt32)(datum))*((UInt32)scale)) >> 6)
macroEV_TICK_TIME
Definition of a tick, as a time in milliseconds. This controls how
often the event system periodic jobs are run. All actual tick times
are derived from the nanosecond timer. These values are typically used
as part of computing mouse velocity for acceleration purposes.
#define EV_TICK_TIME 16
16 milliseconds
macroEV_LB
#define EV_LB (0x04)
macroEV_MOUSEBUTTONMASK
#define EV_MOUSEBUTTONMASK (EV_LB | EV_RB)
macroEV_MINPRESSURE
Tablet Pressure Constants, as passed from an EventSrc to the Event Driver
#define EV_MINPRESSURE 0
macroEV_MAXPRESSURE
#define EV_MAXPRESSURE 255
macroEV_CURSOR_HEIGHT
#define EV_CURSOR_HEIGHT 16
macrokAppleOnboardGUID
#define kAppleOnboardGUID 0x0610000000000000ULL