Warning: This site is under construction, most links will be broken.

LightX API -> lxinputmouse -> setdrawproc

Last modified on Wed, 9th May 2007 at 11:09 UTC by zipplet

lxinputmouse.setdrawproc


procedure setdrawproc(
  proc: mousedrawhook
);

mousedrawhook = procedure of object;


Normally the mouse pointer is drawn by the mouse class given the cursor image you have set using lxinputmouse.setcursor. However, you may tell the mouse class about a procedure that it should call to draw the mouse pointer.

This allows special effects such as animated mouse pointers, alpha blending etc.

proc: mousedrawhook
A method pointer to call when the mouse cursor needs to be drawn. Pass nil here to disable it and use the internal drawing function. Your procedure should read the mouse position fields from the mouse class and draw the pointer at the position given.

Class: lxinputmouse