Blitzmax NG: List of Event IDs?

Started by Cosmo, December 02, 2018, 13:45:28

Previous topic - Next topic

Cosmo

Is there a list of event labels (i.e. EVENT_MOUSEUP or similar) or ID numbers for NG? Thanks in advance,

Cosmo.

Henri

Hi,

you can find event labels from MaxIDE by double clicking 'Help / Modules / Events / Events'.

Quote
EVENT_APPSUSPEND     Application suspended
EVENT_APPRESUME            Application resumed
EVENT_APPTERMINATE    Application wants to terminate
EVENT_KEYDOWN            Key pressed. Event data contains keycode
EVENT_KEYUP              Key released. Event data contains keycode
EVENT_KEYCHAR      Key character. Event data contains unicode value
EVENT_MOUSEDOWN           Mouse button pressed. Event data contains mouse button code
EVENT_MOUSEUP            Mouse button released. Event data contains mouse button code
EVENT_MOUSEMOVE            Mouse moved. Event x and y contain mouse coordinates
EVENT_MOUSEWHEEL    Mouse wheel spun. Event data contains delta clicks
EVENT_MOUSEENTER    Mouse entered gadget area
EVENT_MOUSELEAVE    Mouse left gadget area
EVENT_TIMERTICK            Timer ticked. Event source contains timer object
EVENT_HOTKEYHIT           Hot key hit. Event data and mods contains hotkey keycode and modifier
EVENT_MENUACTION    Menu has been selected
EVENT_WINDOWMOVE    Window has been moved
EVENT_WINDOWSIZE    Window has been resized
EVENT_WINDOWCLOSE    Window close icon clicked
EVENT_WINDOWACTIVATE    Window activated
EVENT_WINDOWACCEPT    Drag and Drop operation was attempted
EVENT_GADGETACTION    Gadget state has been updated
EVENT_GADGETPAINT    A Canvas Gadget needs to be redrawn
EVENT_GADGETSELECT    A TreeView Node has been selected
EVENT_GADGETMENU    User has right clicked a TreeView Node or TextArea gadget
EVENT_GADGETOPEN         A TreeView Node has been expanded
EVENT_GADGETCLOSE    A TreeView Node has been collapsed
EVENT_GADGETDONE    An HTMLView has completed loading a page


-Henri

- Got 01100011 problems, but the bit ain't 00000001

Derron

brl.mod/event.mod/event.bmx:
Code (BlitzMax) Select

Const EVENT_APPMASK:Int=$100
Const EVENT_APPSUSPEND:Int=$101
Const EVENT_APPRESUME:Int=$102
Const EVENT_APPTERMINATE:Int=$103
Const EVENT_APPOPENFILE:Int=$104
Const EVENT_APPIDLE:Int=$105 'Reserved by Mark!
Const EVENT_KEYMASK:Int=$200
Const EVENT_KEYDOWN:Int=$201
Const EVENT_KEYUP:Int=$202
Const EVENT_KEYCHAR:Int=$203
Const EVENT_KEYREPEAT:Int=$204
Const EVENT_MOUSEMASK:Int=$400
Const EVENT_MOUSEDOWN:Int=$401
Const EVENT_MOUSEUP:Int=$402
Const EVENT_MOUSEMOVE:Int=$403
Const EVENT_MOUSEWHEEL:Int=$404
Const EVENT_MOUSEENTER:Int=$405
Const EVENT_MOUSELEAVE:Int=$406
Const EVENT_TIMERMASK:Int=$800
Const EVENT_TIMERTICK:Int=$801
Const EVENT_HOTKEYMASK:Int=$1000
Const EVENT_HOTKEYHIT:Int=$1001
Const EVENT_GADGETMASK:Int=$2000
Const EVENT_GADGETACTION:Int=$2001
Const EVENT_GADGETPAINT:Int=$2002
Const EVENT_GADGETSELECT:Int=$2003
Const EVENT_GADGETMENU:Int=$2004
Const EVENT_GADGETOPEN:Int=$2005
Const EVENT_GADGETCLOSE:Int=$2006
Const EVENT_GADGETDONE:Int=$2007
Const EVENT_GADGETLOSTFOCUS:Int=$2008
Const EVENT_GADGETSHAPE:Int=$2009 'reserved by Mark!
Const EVENT_WINDOWMASK:Int=$4000
Const EVENT_WINDOWMOVE:Int=$4001
Const EVENT_WINDOWSIZE:Int=$4002
Const EVENT_WINDOWCLOSE:Int=$4003
Const EVENT_WINDOWACTIVATE:Int=$4004
Const EVENT_WINDOWACCEPT:Int=$4005
Const EVENT_MENUMASK:Int=$8000
Const EVENT_MENUACTION:Int=$8001
Const EVENT_STREAMMASK:Int=$10000
Const EVENT_STREAMEOF:Int=$10001
Const EVENT_STREAMAVAIL:Int=$10002
Const EVENT_PROCESSMASK:Int=$20000
Const EVENT_PROCESSEXIT:Int=$20001
Const EVENT_TOUCHMASK:Int=$40000
Const EVENT_TOUCHDOWN:Int=$40001
Const EVENT_TOUCHUP:Int=$40002
Const EVENT_TOUCHMOVE:Int=$40003
Const EVENT_MULTIGESTURE:Int=$80000
Const EVENT_USEREVENTMASK:Int=$80000000


So there seems to be some more stuff (think of SDL and the touch-support).

Cosmo

thank you!
this will greatly benefit my project.

Henri

New event ID's in Derron's post might be working, but are still undocumented and might also be subject for change.

-Henri
- Got 01100011 problems, but the bit ain't 00000001