Commodities
From Amiga Development Wiki
Revision as of 07:00, 13 January 2016 by AmigaDeveloper (Talk | contribs) (Amiga commodities.library)
Input events
Commodities can react to gloabl input events using ParseIX() and MatchIX() API. Input event types are:
Input class | Description |
---|---|
rawkey | Keyboard events |
rawmouse | Mouse events |
event | |
pointerpos | Pointer position |
timer | Timer events |
newprefs | System settings changed event |
diskremoved | Massstorage removal event |
diskinserted | Massstorage insertion event |
Events can use following qualifiers:
Qualifier | Description |
---|---|
shift | Left or right shift key |
lshift | Left shift key only |
rshift | Right shift key only |
capslock | Caps lock on |
caps | Caps lock on or any shift key is pressed |
control | Left or right control key |
alt | Left or right alt key |
lalt | Left alt key only |
ralt | Right alt key only |
lcommand | Left command key (Amiga, Apple or Windows key) |
rcommand | Right command key (Amiga, Apple or Windows key) |
numericpad | Numeric pad |
repeat | |
mouse_leftpress | Left mouse button pressed |
mouse_middlepress | Middle mouse button pressed |
mouse_rightpress | Right mouse button pressed |
mouse_fourthpress | Right mouse button pressed |
relativemouse |