[cl-opengl-devel] GLUT handling for a mouse wheel

Charlie McMackin charliemac+cl-opengl at gmail.com
Sat Feb 9 13:14:47 UTC 2008


Having a GLUT window die on me because I accidentally scroll the mouse
wheel down finally drove me mad enough to go track the problem down.
I'm not sure if this is the correct way to do it, but weighing in at
one line sexp it sure feels good. I picked :wheel-down but I guess any
keyword can be put in it's place.

the change: in glut/callbacks.lisp add (:wheel-down -1) to the
mouse-button-state cenum.

Charlie Mac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mouse-wheel.patch
Type: application/octet-stream
Size: 14078 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-opengl-devel/attachments/20080209/e7015592/attachment.obj>


More information about the cl-opengl-devel mailing list