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