timeoutInTicks
Type Definitions
EventRecord used in GetNextEvent, et.al
EvQEl event queue element, as used in PPostEvent
KeyMap as used in GetKeys
TargetID as used in AcceptHighLevelEvent
HighLevelEventMsg as used in GetSpecificHighLevelEvent
typedef pascal Boolean (*GetSpecificFilterProcPtr) (void *yourDataPtr,
HighLevelEventMsgPtr msgBuff, const TargetID *sender);
Event Types constants found in EventRecord.what
Posting Options Posting options for PostHighLevelEvent
Event Mask constants used to mask events in GetNextEvent,
et.al.
charCodeMask 0x000000FF mask obtains character code from
EventRecord. message
keyCodeMask 0x0000FF00 mask obtains Key Codes from
EventRecord. message
adbAddrMask 0x00FF0000
osEvtMessageMask 0xFF000000
OSEvent Messages
mouseMovedMessage 0xFA
suspendResumeMessage 0x01
resumeFlag 1 Bit 0 of message indicates resume vs suspend
convertClipboardFlag 2 Bit 1 in resume message indicates clipboard
change
Codes found in EventRecord.modifiers
activeFlag 0x0001 bit 0 of modifiers for activate event
btnState 0x0080 Bit 7 of low byte is mouse button state
cmdKey 0x0100 Bit 0
shiftKey 0x0200 Bit 1
alphaLock 0x0400 Bit 2
optionKey 0x0800 Bit 3 of high byte
controlKey 0x1000
Constants for Return Receipt
HighLevelEventMsgClass 'jaym'
rtrnReceiptMsgID 'rtrn'
Return Receipt codes
msgWasPartiallyAccepted 2
msgWasFullyAccepted 1
msgWasNotAccepted 0
Do not use low memory global variables that are not documented.
No undocumented location below the system heap is guaranteed to be available
for use in future systems.
Variables
Name Address Size Description
CaretTime 0x02F4 4 time between blinks of insertion caret
DoubleTime 0x02F0 4 maximum time between double clicks
EventQueue 0x014A 10 QHdr of event queue
JGNEFilter 0x029A 4 ProcPtr to GetNextEvent filter
JournalFlag 0x08DE 2 journaling mode
JournalRef 0x08E8 2 journaling device driver reference number
Key1Trans 0x029E 4 keyboard translation proc ptr
Key2Trans 0x02A2 4 numeric keypad translation proc
KeyRepThresh 0x0190 1 autoKey delay between repeats
KeyThresh 0x018E 2 autoKey delay before first repeat
ScrDmpEnb 0x02F8 1 0 if -Shft-# (0-9) processing is disabled
SEvtEnb 0x015C 1 0 if SystemEvent should return FALSE
SysEvtMask 0x0144 2 masks out events before you see them
(SetEventMask)
Ticks 0x016A 4 count of 1/60th-second ticks since startup
WindowList 0x09D6 4 0 if using events but no windows