|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- GlobalEvents
- --------------------
- "set_app_palette" (NESPalette)
- "emitted-event" ()
-
-
- Input
- --------------------
- "<variable keyboard key combination>" ({
- source: <InputObject>,
- iscombo: <boolean>,
- keys: <string [matching event name]>,
- keycode: <number [ascii of keyboard key pressed]>,
- keyname: <string [name of keyboard key pressed]>,
- action: <string [keyboard action triggering event]>
- })
-
- "keydown" ({
- source: <InputObject>,
- iscombo: <boolean>,
- keys: <string [names of all currently pressed keys]>,
- keycode: <number [ascii of keyboard key pressed]>,
- keyname: <string [name of keyboard key pressed]>,
- action: <string [matching event name]>
- })
-
- "keypress" [only if no other keys are pressed] ({
- source: <InputObject>,
- iscombo: <boolean [should always be false]>,
- keys: <string [should be zero-length string]>,
- keycode: <number [ascii of keyboard key released]>,
- keyname: <string [name of keyboard key released]>,
- action: <string [always "keyup"]>
- })
-
- "keyup" ({
- source: <InputObject>,
- iscombo: <boolean>,
- keys: <string [name of all keys remaining pressed]>,
- keycode: <number [ascii of keyboard key released]>,
- keyname: <string [name of keyboard key released]>,
- action: <string [always "keyup"]>
- })
-
-
- "mousemove" ({
- source: <InputObject>,
- lastX: <number | null [Last recorded X mouse pos]>,
- lastY: <number | null [Last recorded Y mouse pos]>,
- x: <number [current X mouse pos]>,
- y: <number [current Y mouse pos]>,
- button: <number [last mouse button triggered]>,
- action: <string ["mousemove"]>
- })
-
- "mousedown" ({
- source: <InputObject>,
- lastX: <number | null [Last recorded X mouse pos]>,
- lastY: <number | null [Last recorded Y mouse pos]>,
- x: <number [current X mouse pos]>,
- y: <number [current Y mouse pos]>,
- button: <number [button pressed]>,
- action: <string ["mousedown"]>
- })
-
- "mouseup" ({
- source: <InputObject>,
- lastX: <number | null [Last recorded X mouse pos]>,
- lastY: <number | null [Last recorded Y mouse pos]>,
- x: <number [current X mouse pos]>,
- y: <number [current Y mouse pos]>,
- button: <number [mouse button released]>,
- action: <string ["mouseup"]>
- })
-
- "mouseclick" [Only if no other buttons pressed] ({
- source: <InputObject>,
- lastX: <number | null [Last recorded X mouse pos]>,
- lastY: <number | null [Last recorded Y mouse pos]>,
- x: <number [current X mouse pos]>,
- y: <number [current Y mouse pos]>,
- button: <number [mouse button released within delay]>,
- action: <string ["mouseup"]>
- })
-
- NESPalette
- --------------------
- "palettes_changed" ({
- type: <string ["ALL"]>,
- cindex: <number [always 0]>
- })
-
- "palettes_changed" ({
- type: <string ["TILE" | "SPRITE"]>,
- pindex: <number [0 - 3]>,
- cindex: <number [1 - 3]>
- })
-
-
|