; File:  E16.Event
;
;
; Copyright Apple Computer, Inc. 1986-90
; All Rights Reserved
;
;
emDupStrtUpErr GEQU $0601 ; duplicate EMStartup Call
emResetErr GEQU $0602 ; can't reset error the Event Manager
emNotActErr GEQU $0603 ; event manager not active
emBadEvtCodeErr GEQU $0604 ; illegal event code
emBadBttnNoErr GEQU $0605 ; illegal button number
emQSiz2LrgErr GEQU $0606 ; queue size too large
emNoMemQueueErr GEQU $0607 ; not enough memory for queue
emBadEvtQErr GEQU $0681 ; fatal sys error - event queue damaged
emBadQHndlErr GEQU $0682 ; fatal sys error - queue handle damaged
nullEvt GEQU $0000
mouseDownEvt GEQU $0001
mouseUpEvt GEQU $0002
keyDownEvt GEQU $0003
autoKeyEvt GEQU $0005
updateEvt GEQU $0006
activateEvt GEQU $0008
switchEvt GEQU $0009
deskAccEvt GEQU $000A
driverEvt GEQU $000B
app1Evt GEQU $000C
app2Evt GEQU $000D
app3Evt GEQU $000E
app4Evt GEQU $000F
mDownMask GEQU $0002
mUpMask GEQU $0004
keyDownMask GEQU $0008
autoKeyMask GEQU $0020
updateMask GEQU $0040
activeMask GEQU $0100
switchMask GEQU $0200
deskAccMask GEQU $0400
driverMask GEQU $0800
app1Mask GEQU $1000
app2Mask GEQU $2000
app3Mask GEQU $4000
app4Mask GEQU $8000
everyEvent GEQU $FFFF
jcTickCount GEQU $00 ; TickCount call
jcGetMouse GEQU $01 ; GetMouse call
jcButton GEQU $02 ; Button call
jcEvent GEQU $04 ; GetNextEvent and EventAvail calls
activeFlag GEQU $0001 ; set if window being activated
changeFlag GEQU $0002 ; set if active wind. changed state
btn1State GEQU $0040 ; set if button 1 up
btn0State GEQU $0080 ; set if button 0 up
appleKey GEQU $0100 ; set if Apple key down
shiftKey GEQU $0200 ; set if shift key down
capsLock GEQU $0400 ; set if caps lock key down
optionKey GEQU $0800 ; set if option key down
controlKey GEQU $1000 ; set if Control key down
keyPad GEQU $2000 ; set if keypress from key pad
keyboardTransIIGS GEQU $0000 ; use old-style Apple IIGS mapping
keyboardTransMac GEQU $00FF ; use Macintosh mapping
; offset constants for EventRecord
owhat GEQU 0
omessage GEQU 2
owhen GEQU 6
owhere GEQU 10
omodifiers GEQU 14
owmTaskData GEQU 16
owmTaskMask GEQU 20
owmLastClickTick GEQU 24
owmClickCount GEQU 28
owmTaskData2 GEQU 30
owmTaskData3 GEQU 34
owmTaskData4 GEQU 38
owmLastClickPt GEQU 42
