Module ...

Basic mousepress handler The engine calls receiveMouse when a mouse is clicked

Functions

_M:receiveMouse (button, x, y) Called when a mouse is pressed
_M:registerZone (x, y, w, h, fct, mode) Registers a click zone that when clicked will call the object's "onClick" method
_M:setCurrent () Setups as the current game keyhandler


Functions

_M:receiveMouse (button, x, y)
Called when a mouse is pressed

Parameters

  • button:
  • x: coordinate of the click
  • y: coordinate of the click
_M:registerZone (x, y, w, h, fct, mode)
Registers a click zone that when clicked will call the object's "onClick" method

Parameters

  • x:
  • y:
  • w:
  • h:
  • fct:
  • mode:
_M:setCurrent ()
Setups as the current game keyhandler

Valid XHTML 1.0!