home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d528
/
keymenu.lha
/
KeyMenu
/
src.lzh
/
KeyMenu-Handler.i
< prev
next >
Wrap
Text File
|
1991-08-03
|
4KB
|
94 lines
remove_event equ 1
pass_event_on equ 0
req_offsprite equ -1
req_onsprite equ -2
req_stopped equ -3
AbsExecBase equ 4
extern_lib Permit
;
; gb_flags definitions
;
bitdef FLAG,AKey_down,0
bitdef FLAG,MActive,1
bitdef FLAG,Clear_rmbtrap,2
bitdef FLAG,Stop_requested,3
bitdef FLAG,Stopped,4
bitdef FLAG,Events_inserted,5
bitdef FLAG,Repeat_skipped,6
bitdef FLAG,Blank_pointer,7
;
; gb_flags2 definitions
;
bitdef FLAG,ASC,0
bitdef FLAG,Release2,1
bitdef FLAG,Blanked,2
;
; misc. flags
;
bitnum MENUSTATE,MENUSTATE
bitnum RMBTRAP,RMBTRAP
bitnum IECODE_UP_PREFIX,IECODE_UP_PREFIX
bitnum V_HIRES,V_HIRES
bitnum V_LACE,V_LACE
bitnum IEQUALIFIER_REPEAT,IEQUALIFIER_REPEAT
portname macro * name
%1 dc.b 'KeyMenu V1.05',0
endm
structure Global_data,0
struct gb_Port,MP_SIZE ; msg port
aptr gb_Segment ; handler segment
struct gb_handler,IS_SIZE ; area for input handler
aptr gb_IBase ; Intuition Library base
aptr gb_handtask ; handler task
aptr gb_task ; keymenu task
aptr gb_window ; current window
aptr gb_menu ; First Menu
aptr gb_currentmenu ; current Menu
aptr gb_currentitem ; current MenuItem
aptr gb_currentsubitem ; current SubItem
struct gb_ppos1,ie_SIZEOF ; pointerpos event area
struct gb_ppos2,ie_SIZEOF ; pointerpos event area
struct gb_rawm,ie_SIZEOF ; rawmouse event area
struct gb_pp1,IEPointerPixel_SIZEOF ; Position info for NEWPOINTERPOS
struct gb_pp2,IEPointerPixel_SIZEOF ; " " " "
word gb_old_MouseX ; mouse coordinates before
; menu was activated
word gb_old_MouseY
ubyte gb_waitcnt ; activation sequence wait counter
ubyte gb_flags ; various status flags
; - AKey_down
; - MActive
; - Clear_rmbtrap
; - stop_requested
; - events inserted
; - repeat skipped
; - Blank pointer
ubyte gb_flags2 ; more flags
; - activation sequence complete
; - Release 2.0
; - Blanked
ubyte gb_AKey ; Menu activation key
ubyte gb_DKey ; Menu deactivation key
ubyte gb_SKey ; Menu select key
ubyte gb_UpKey ; Up key
ubyte gb_DownKey ; Down key
ubyte gb_LeftKey ; Left key
ubyte gb_RightKey ; Right key
ubyte gb_Qual ; qualifier(s)
ubyte gb_tasksignum ; keymenu signal number
label gb_size
structure Item_def,0
aptr im_NextItem
word im_LeftEdge
word im_TopEdge
word im_Width
word im_Height
label im_size