diff options
author | Colin Okay <colin@cicadas.surf> | 2022-07-08 08:25:15 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-07-08 08:25:15 -0500 |
commit | 45be2fa987b6c398335a1604815bb0d8ceb4a23b (patch) | |
tree | 4c30ca7659146a4db8b64b1151c612b3273bb90f /src/events | |
parent | 50035adb08e82c240209ab6b53ba70e741ea58b0 (diff) |
[doc] added docstring to on-mousemotion
Diffstat (limited to 'src/events')
-rw-r--r-- | src/events/event-handler.lisp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/events/event-handler.lisp b/src/events/event-handler.lisp index bd40849..b8c72ef 100644 --- a/src/events/event-handler.lisp +++ b/src/events/event-handler.lisp @@ -78,6 +78,19 @@ can be redefined using this form to support interactive development." ,@body))) (defmacro on-mousemotion + "ON-MOUSEMOTION defines a mouse motion event handler. All +variable arguments supplied the the ON-MOUSEDOWN handler form are +optional. You may supply your own variables to use in your BODY or you +may just refer to the defaults - they will be interned in the +appropriate package. + +- TARGET is the object ontowhich the handler was installed +- X and Y are the scaled screen coordinates +- XREL and YREL are the relative motion of the X and Y positions since + the last event, in scaled coordinates +- STATE is the button state, see the SDL2 docs +- WIN-* variables are the unscaled event values, if you require them. +" ((&optional (target 'target) (x 'x) (y 'y) |