aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-04-12 18:03:07 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-04-12 18:03:07 +0100
commit7d6a41eabaeb4f28298cb9a3ab14e0eec876a5fd (patch)
tree7d99443d6ad540b23928bbec1c230f76e79edbb9
parent8cf08582766e662b1dbc979b4f5b8dfb60ed4e90 (diff)
downloadtermo-7d6a41eabaeb4f28298cb9a3ab14e0eec876a5fd.tar.gz
termo-7d6a41eabaeb4f28298cb9a3ab14e0eec876a5fd.tar.xz
termo-7d6a41eabaeb4f28298cb9a3ab14e0eec876a5fd.zip
termkey_interpret_mouse takes const key, does not set modifiers, as that's already done
-rw-r--r--man/termkey_interpret_mouse.34
1 files changed, 1 insertions, 3 deletions
diff --git a/man/termkey_interpret_mouse.3 b/man/termkey_interpret_mouse.3
index c817441..91a600d 100644
--- a/man/termkey_interpret_mouse.3
+++ b/man/termkey_interpret_mouse.3
@@ -5,7 +5,7 @@ termkey_interpret_mouse \- interpret opaque mouse event data
.nf
.B #include <termkey.h>
.sp
-.BI "TermKeyResult termkey_interpret_mouse(TermKey *" tk ", TermKeyKey *" key ", "
+.BI "TermKeyResult termkey_interpret_mouse(TermKey *" tk ", const TermKeyKey *" key ", "
.BI " TermKeyMouseEvent *" ev ", int *" button ", int *" line ", int *" col );
.fi
.sp
@@ -31,8 +31,6 @@ the mouse was moved while holding a button; \fIbutton\fP will contain its number
a mouse button was released, or the mouse was moved while no button was pressed. If known, \fIbutton\fP will contain the number of the button released. Not all terminals can report this, so it may be 0 instead.
.PP
The \fIline\fP and \fIcol\fP variables will be filled in with the mouse position, indexed from 1.
-.PP
-After calling this function, it is possible that the \fImodifiers\fP field of the \fIkey\fP structure will have been set according to the modifiers reported by the terminal. This function will not otherwise alter either the \fIkey\fP or the containing \fItk\fP structure, and will be safe to call again on the same event if required.
.SH "RETURN VALUE"
If passed a \fIkey\fP event of the type \fBTERMKEY_TYPE_MOUSE\fP, this function will return \fBTERMKEY_RES_KEY\fP and will affect the variables whose pointers were passed in, as described above.
.PP