Reading the mouse
LDK takes control of your input devices, preventing you from using custom handlers (but you can overwrite this is you don't want to use the LDK input manager).

The current position of the mouse is given by two variables: ldk_mouseX and ldk_mouseY. The current state of the mouse button (1=left, 3=right, 0=nothing) is found using the variable ldk_button.

Note that the Opera browser's gesture recognition may undo your grand fancy mouse input plans.

Last edited Dec 13, 2009 at 10:55 PM by larztheloser, version 2


No comments yet.