#include <IOKit/hidsystem/IOHIDTypes.h>

IOKit/hidsystem/IOHIDTypes.h Kernel.framework

This should be removed, but is being used by others
32 macros · 9 typedefs · 5 structs · 2 enums

macroEVENT_SYSTEM_VERSION

Shared memory versions
#define EVENT_SYSTEM_VERSION 2

macroNX_MAXMOUSESCALINGS

Maximum length of SetMouseScaling arrays
#define NX_MAXMOUSESCALINGS 20

structevsioKeymapping

size 16, align 8
intsize
char *mapping

typedefNXKeyMapping

typedef struct evsioKeymapping NXKeyMapping;

structevsioMouseScaling

size 84, align 4
intnumScaleLevels
short[20]scaleThresholds
short[20]scaleFactors

typedefNXMouseScaling

typedef struct evsioMouseScaling NXMouseScaling;

enumNXMouseButton

underlying type unsigned int
NX_OneButton0
NX_LeftButton1
NX_RightButton2

typedefNXMouseButton

typedef enum NXMouseButton NXMouseButton;

struct__IOFixedPoint32

IOFixedPoint32 is a 24.8 format
size 8, align 4
int32_tx
int32_ty

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

macroNX_EVS_INFO_MAX

#define NX_EVS_INFO_MAX (1024)
Max array size

typedefNXEventSystemInfoData

typedef int NXEventSystemInfoData[NX_EVS_INFO_MAX]

macroNX_EVS_DEVICE_MAX

Event System Devices query
#define NX_EVS_DEVICE_MAX 16

macroNX_EVS_DEVICE_INTERFACE_OTHER

Interface types
#define NX_EVS_DEVICE_INTERFACE_OTHER 0

macroNX_EVS_DEVICE_INTERFACE_NeXT

#define NX_EVS_DEVICE_INTERFACE_NeXT 1
NeXT custom, in older sys

macroNX_EVS_DEVICE_INTERFACE_ADB

#define NX_EVS_DEVICE_INTERFACE_ADB 2
NeXT/fruit keybds/mice

macroNX_EVS_DEVICE_INTERFACE_ACE

#define NX_EVS_DEVICE_INTERFACE_ACE 3
For x86 PC keyboards

macroNX_EVS_DEVICE_INTERFACE_SERIAL_ACE

#define NX_EVS_DEVICE_INTERFACE_SERIAL_ACE 4
For PC serial mice

macroNX_EVS_DEVICE_INTERFACE_BUS_ACE

#define NX_EVS_DEVICE_INTERFACE_BUS_ACE 5
For PC bus mice

macroNX_EVS_DEVICE_INTERFACE_HIL

#define NX_EVS_DEVICE_INTERFACE_HIL 6
For HIL hp keyboard

macroNX_EVS_DEVICE_INTERFACE_TYPE5

#define NX_EVS_DEVICE_INTERFACE_TYPE5 7
For Sun Type5 keyboard

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_OTHER

Device types
#define NX_EVS_DEVICE_TYPE_OTHER 0

macroNX_EVS_DEVICE_TYPE_KEYBOARD

#define NX_EVS_DEVICE_TYPE_KEYBOARD 1

macroNX_EVS_DEVICE_TYPE_MOUSE

#define NX_EVS_DEVICE_TYPE_MOUSE 2
Relative position devices

macroNX_EVS_DEVICE_TYPE_TABLET

#define NX_EVS_DEVICE_TYPE_TABLET 3
Absolute position devices

structNXEventSystemDevice

size 16, align 4
intinterfaceNeXT, ADB, other
intinterface_addrDevice address on the interface
intdev_typeKeyboard, mouse, tablet, other
intidmanufacturer's device handler ID

typedefNXEventSystemDevice

typedef struct NXEventSystemDevice NXEventSystemDevice;

structNXEventSystemDeviceList

size 256, align 4
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

underlying type unsigned int
EVNOP0Cursor state
EVHIDE1
EVSHOW2
EVMOVE3
EVLEVEL4

typedefEvCmd

typedef enum {EVNOP, EVHIDE, EVSHOW, EVMOVE, EVLEVEL} EvCmd

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_TICKS_PER_SEC

#define EV_TICKS_PER_SEC (1000/EV_TICK_TIME)
~ 62 Hz

macroEV_RB

Mouse Button bits, as passed from an EventSrc to the Event Driver
#define EV_RB (0x01)

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_WIDTH

Cursor size in pixels
#define EV_CURSOR_WIDTH 16

macroEV_CURSOR_HEIGHT

#define EV_CURSOR_HEIGHT 16

macrokAppleOnboardGUID

#define kAppleOnboardGUID 0x0610000000000000ULL