19 #ifndef __CURSORDEVICES__
20 #define __CURSORDEVICES__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
72 kButtonSingleClick = 1,
73 kButtonDoubleClick = 2,
85 kDeviceClassAbsolute = 0,
86 kDeviceClassMouse = 1,
87 kDeviceClassTrackball = 2,
88 kDeviceClassTrackPad = 3
107 short privateFields[22];
128 unsigned long doubleClickTime;
130 short privateFields[15];
138 CursorDeviceCustomButtonUPP;
139 #if CALL_NOT_IN_CARBON
148 CursorDeviceCustomButtonUPP
150 #if !OPAQUE_UPP_TYPES
153 uppCursorDeviceCustomButtonProcInfo = 0x000ED802
156 inline CursorDeviceCustomButtonUPP
160 (ProcPtr)(userRoutine), uppCursorDeviceCustomButtonProcInfo,
161 GetCurrentArchitecture());
164 #define NewCursorDeviceCustomButtonUPP(userRoutine) \
165 (CursorDeviceCustomButtonUPP) NewRoutineDescriptor( \
166 (ProcPtr)(userRoutine), uppCursorDeviceCustomButtonProcInfo, \
167 GetCurrentArchitecture())
181 #if !OPAQUE_UPP_TYPES
189 #define DisposeCursorDeviceCustomButtonUPP(userUPP) \
190 DisposeRoutineDescriptor(userUPP)
204 CursorDeviceCustomButtonUPP userUPP);
205 #if !OPAQUE_UPP_TYPES && \
206 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
210 CursorDeviceCustomButtonUPP userUPP)
212 CALL_TWO_PARAMETER_UPP(userUPP, uppCursorDeviceCustomButtonProcInfo,
216 #define InvokeCursorDeviceCustomButtonUPP(ourDevice, button, userUPP) \
217 CALL_TWO_PARAMETER_UPP((userUPP), uppCursorDeviceCustomButtonProcInfo, \
218 (ourDevice), (button))
224 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
226 #define NewCursorDeviceCustomButtonProc(userRoutine) \
227 NewCursorDeviceCustomButtonUPP(userRoutine)
228 #define CallCursorDeviceCustomButtonProc(userRoutine, ourDevice, button) \
229 InvokeCursorDeviceCustomButtonUPP(ourDevice, button, userRoutine)
232 #if CALL_NOT_IN_CARBON
400 #if CALL_NOT_IN_CARBON
427 #if PRAGMA_STRUCT_ALIGN
428 #pragma options align = reset
429 #elif PRAGMA_STRUCT_PACKPUSH
431 #elif PRAGMA_STRUCT_PACK
435 #ifdef PRAGMA_IMPORT_OFF
OSErr CursorDeviceSetAcceleration(CursorDevicePtr ourDevice, Fixed acceleration)
OSErr CursorDeviceNewDevice(CursorDevicePtr *ourDevice)
OSErr CursorDeviceMoveTo(CursorDevicePtr ourDevice, long absX, long absY)
OSErr CursorDeviceUnitsPerInch(CursorDevicePtr ourDevice, Fixed resolution)
OSErr CursorDeviceFlush(CursorDevicePtr ourDevice)
OSErr CursorDeviceButtonUp(CursorDevicePtr ourDevice)
OSErr CursorDeviceButtonOp(CursorDevicePtr ourDevice, short buttonNumber, ButtonOpcode opcode, long data)
OSErr CursorDeviceMove(CursorDevicePtr ourDevice, long deltaX, long deltaY)
CursorDeviceCustomButtonUPP NewCursorDeviceCustomButtonUPP(CursorDeviceCustomButtonProcPtr userRoutine)
OSErr CursorDeviceButtons(CursorDevicePtr ourDevice, short buttons)
OSErr CursorDeviceDoubleTime(CursorDevicePtr ourDevice, long durationTicks)
OSErr CursorDeviceButtonDown(CursorDevicePtr ourDevice)
OSErr CursorDeviceDisposeDevice(CursorDevicePtr ourDevice)
OSErr CursorDeviceSetButtons(CursorDevicePtr ourDevice, short numberOfButtons)
short ButtonOpcode
Definition: CursorDevices.h:67
OSErr CursorDeviceNextDevice(CursorDevicePtr *ourDevice)
void DisposeCursorDeviceCustomButtonUPP(CursorDeviceCustomButtonUPP userUPP)
void InvokeCursorDeviceCustomButtonUPP(CursorDevicePtr ourDevice, short button, CursorDeviceCustomButtonUPP userUPP)
Basic Macintosh data types.
long Fixed
Definition: MacTypes.h:153
unsigned char Boolean
Definition: MacTypes.h:318
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP
Definition: CursorDevices.h:98
Definition: CursorDevices.h:112
Definition: MacTypes.h:520