CanvasMouseHelper Module

Community Forums/Showcase/CanvasMouseHelper Module

Ked(Posted 2008) [#1]
Functions
CMouse.startmouse(canvas:tgadget)
CMouse.del(canvas:tgadget)
CMouse.getx(canvas:tgadget)
CMouse.gety(canvas:tgadget)
CMouse.getxspeed(canvas:tgadget)
CMouse.getyspeed(canvas:tgadget)

Events
CMOUSE_MOUSEDOWN (data=mouse ID)
CMOUSE_MOUSEUP (data=mouse ID)

**Credit to Gfk for the MouseXSpeed() and MouseYSpeed() code snippets.**

Hey. I put this module together to help me out with the mouse x and y coordinates on a canvas. Feel free to use it.

You can download from my signature.