34 #if !TARGET_OS_MAC || !TARGET_API_MAC_OS8
54 #if PRAGMA_STRUCT_ALIGN
55 #pragma options align = mac68k
56 #elif PRAGMA_STRUCT_PACKPUSH
58 #elif PRAGMA_STRUCT_PACK
63 typedef UInt16 EventMask;
81 mDownMask = 1 << mouseDown,
96 charCodeMask = 0x000000FF,
97 keyCodeMask = 0x0000FF00,
98 adbAddrMask = 0x00FF0000,
99 osEvtMessageMask = (
unsigned long)0xFF000000
107 suspendResumeMessage = 0x0001
115 #if CALL_NOT_IN_CARBON
127 convertClipboardFlag =
184 kBackspaceCharCode = 8,
186 kLineFeedCharCode = 10,
187 kVerticalTabCharCode = 11,
188 kPageUpCharCode = 11,
189 kFormFeedCharCode = 12,
190 kPageDownCharCode = 12,
191 kReturnCharCode = 13,
192 kFunctionKeyCharCode = 16,
193 kCommandCharCode = 17,
199 kLeftArrowCharCode = 28,
200 kRightArrowCharCode = 29,
201 kUpArrowCharCode = 30,
202 kDownArrowCharCode = 31,
204 kDeleteCharCode = 127,
205 kBulletCharCode = 165,
206 kNonBreakingSpaceCharCode = 202
212 kShiftUnicode = 0x21E7,
232 typedef CALLBACK_API(
void, FKEYProcPtr)(void);
234 #if CALL_NOT_IN_CARBON
245 #if !OPAQUE_UPP_TYPES
248 uppFKEYProcInfo = 0x00000000
251 inline FKEYUPP
NewFKEYUPP(FKEYProcPtr userRoutine)
254 GetCurrentArchitecture());
257 #define NewFKEYUPP(userRoutine) \
258 (FKEYUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppFKEYProcInfo, \
259 GetCurrentArchitecture())
273 #if !OPAQUE_UPP_TYPES
280 #define DisposeFKEYUPP(userUPP) DisposeRoutineDescriptor(userUPP)
294 #if !OPAQUE_UPP_TYPES
301 #define InvokeFKEYUPP(userUPP) \
302 CALL_ZERO_PARAMETER_UPP((userUPP), uppFKEYProcInfo)
308 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
310 #define NewFKEYProc(userRoutine) NewFKEYUPP(userRoutine)
311 #define CallFKEYProc(userRoutine) InvokeFKEYUPP(userRoutine)
400 #if TARGET_OS_MAC && TARGET_API_MAC_OS8
428 networkMask = 0x0400,
452 #if CALL_NOT_IN_CARBON
461 GetNextEventFilterUPP
463 #if !OPAQUE_UPP_TYPES
466 uppGetNextEventFilterProcInfo = 0x000000BF
469 inline GetNextEventFilterUPP
473 (ProcPtr)(userRoutine), uppGetNextEventFilterProcInfo,
474 GetCurrentArchitecture());
477 #define NewGetNextEventFilterUPP(userRoutine) \
478 (GetNextEventFilterUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
479 uppGetNextEventFilterProcInfo, \
480 GetCurrentArchitecture())
494 #if !OPAQUE_UPP_TYPES
501 #define DisposeGetNextEventFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
515 GetNextEventFilterUPP userUPP);
516 #if !OPAQUE_UPP_TYPES && \
517 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
520 GetNextEventFilterUPP userUPP)
522 CALL_TWO_PARAMETER_UPP(userUPP, uppGetNextEventFilterProcInfo,
theEvent,
526 #define InvokeGetNextEventFilterUPP(theEvent, result, userUPP) \
527 CALL_TWO_PARAMETER_UPP((userUPP), uppGetNextEventFilterProcInfo, (theEvent), \
534 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
536 #define NewGetNextEventFilterProc(userRoutine) \
537 NewGetNextEventFilterUPP(userRoutine)
538 #define CallGetNextEventFilterProc(userRoutine, theEvent, result) \
539 InvokeGetNextEventFilterUPP(theEvent, result, userRoutine)
585 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
586 * \non_carbon_cfm in InterfaceLib 7.1 and
588 * \carbon_lib in CarbonLib 1.0 and
590 * \mac_os_x in version 10.0 and
630 SetEventMask(EventMask value);
632 #if CALL_NOT_IN_CARBON
659 #if CALL_NOT_IN_CARBON
699 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
700 #pragma parameter __D0 PPostEvent(__A0, __D0, __A1)
781 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
782 #pragma parameter __D0 PostEvent(__A0, __D0)
785 PostEvent(
EventKind eventNum, UInt32 eventMsg);
794 #if CALL_NOT_IN_CARBON
825 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
826 #pragma parameter __D0 OSEventAvail(__D0, __A0)
861 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
862 #pragma parameter __D0 GetOSEvent(__D0, __A0)
896 FlushEvents(EventMask whichMask, EventMask stopMask);
898 #if CALL_NOT_IN_CARBON
938 .....process events...
942 DAs wanting a timeslice every so often should set bit 5 of the drvrFlags
943 word and a tick count in drvrDelay in the driver
header.You should not depend on any particular accuracy,
944 since an application may fail to call
946 enough(e.g., when saving a file)
948 timeslices with more accuracy,
949 install a vertical retrace task via
VInstall
950 or a timer interrupt task via
InsTime.</ pre>
951 * \copyright THINK Reference © 1991 -
952 1992 Symantec Corporation
953 * \non_carbon_cfm in InterfaceLib 7.1 and
955 * \carbon_lib not available
956 * \mac_os_x not available
1012 #define KeyTrans(transData, keycode, state) \
1013 KeyTranslate(transData, keycode, state)
1195 #if PRAGMA_STRUCT_ALIGN
1196 #pragma options align = reset
1197 #elif PRAGMA_STRUCT_PACKPUSH
1199 #elif PRAGMA_STRUCT_PACK
1203 #ifdef PRAGMA_IMPORT_OFF
1206 #pragma import reset
long BigEndianLong
Definition: Endian.h:549
@ mouseMovedMessage
Definition: Events.h:106
void LMSetKeyRepThresh(SInt16 value)
void InvokeFKEYUPP(FKEYUPP userUPP)
UInt16 EventKind
Definition: Events.h:62
#define NewGetNextEventFilterUPP(userRoutine)
Definition: Events.h:477
UInt16 EventModifiers
Definition: Events.h:145
void GetMouse(Point *mouseLoc)
@ activateEvt
Definition: Events.h:74
void DisposeGetNextEventFilterUPP(GetNextEventFilterUPP userUPP)
GetNextEventFilterUPP GNEFilterUPP
Definition: Events.h:542
void LMSetKbdType(UInt8 value)
UInt32 GetCaretTime(void)
Obtain insertion-point cursor blink interval.
void DisposeFKEYUPP(FKEYUPP userUPP)
#define NewFKEYUPP(userRoutine)
Definition: Events.h:257
struct OpaqueEventRef * EventRef
Definition: Events.h:1081
Boolean WaitMouseUp(void)
BigEndianLong KeyMap[4]
Definition: Events.h:404
Boolean IsCmdChar(const EventRecord *event, short test)
void GetGlobalMouse(Point *globalMouse)
@ kControlUnicode
Definition: Events.h:213
@ kDiamondUnicode
Definition: Events.h:218
@ kBulletUnicode
Definition: Events.h:219
@ kCommandUnicode
Definition: Events.h:215
@ kCheckUnicode
Definition: Events.h:217
@ kAppleLogoUnicode
Definition: Events.h:220
@ kOptionUnicode
Definition: Events.h:214
@ kPencilUnicode
Definition: Events.h:216
UInt32 GetCurrentKeyModifiers(void)
@ rightOptionKeyBit
Definition: Events.h:157
@ alphaLockBit
Definition: Events.h:153
@ shiftKeyBit
Definition: Events.h:152
@ optionKeyBit
Definition: Events.h:154
@ rightControlKeyBit
Definition: Events.h:158
@ cmdKeyBit
Definition: Events.h:151
@ btnStateBit
Definition: Events.h:150
@ rightShiftKeyBit
Definition: Events.h:156
@ activeFlagBit
Definition: Events.h:149
@ controlKeyBit
Definition: Events.h:155
UInt32 KeyTranslate(const void *transData, UInt16 keycode, UInt32 *state)
void LMSetKbdLast(UInt8 value)
UInt8 KeyMapByteArray[16]
Definition: Events.h:407
void KeyScript(short code)
Boolean SystemEvent(const EventRecord *theEvent)
Used internally by Event Manager.
@ kAppleLogoCharCode
Definition: Events.h:196
@ kCheckCharCode
Definition: Events.h:194
@ kDiamondCharCode
Definition: Events.h:195
@ kEscapeCharCode
Definition: Events.h:197
Boolean CheckEventQueueForUserCancel(void)
SInt16 LMGetKeyRepThresh(void)
void LMSetKeyThresh(SInt16 value)
void InvokeGetNextEventFilterUPP(EventRecord *theEvent, Boolean *result, GetNextEventFilterUPP userUPP)
void GetKeys(KeyMap theKeys)
SInt16 LMGetKeyThresh(void)
@ autoKeyMask
Definition: Events.h:85
@ updateMask
Definition: Events.h:86
@ diskMask
Definition: Events.h:87
@ keyUpMask
Definition: Events.h:84
@ osMask
Definition: Events.h:90
@ mUpMask
Definition: Events.h:82
@ keyDownMask
Definition: Events.h:83
@ highLevelEventMask
Definition: Events.h:89
@ activMask
Definition: Events.h:88
@ everyEvent
Definition: Events.h:91
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
#define CALL_ZERO_PARAMETER_UPP(upp, procInfo)
Definition: MixedMode.h:790
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Interface to Quickdraw Graphics.
OSErr VInstall(QElemPtr vblTaskPtr)
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP
void InsTime(QElemPtr tmTaskPtr)
Install timer task.
UInt32 evtQMessage
Definition: Events.h:442
Definition: Quickdraw.h:1648
Definition: Quickdraw.h:306
Definition: MacTypes.h:520
Definition: OSUtils.h:131
Definition: OSUtils.h:154