FreeJ scripting

Class MouseController

Object
   |
   +--Controller
         |
         +--MouseController

class MouseController
extends Controller


Get mouse button and motion events of the SDL output window. The Mouse Controller holds callbacks to javascript.
Author: MrGoil
Defined in Controller.js


Constructor Summary
MouseController()
            The MouseController constructor creates a controller which receives mousebutton and mousemotion events.
 
Method Summary
 bool callback button(<int> button, <int> state, <int> x, <int> y)
           This will be called on mouse button up and down.
 bool grab(<bool> state)
           Grabbing means that the mouse is confined to the application window.
 bool callback motion(<int> buttonmask, <int> x, <int> y, <int> xrel, <int> yrel)
           This will be called when mouse is moving over the viewport.
 
Methods inherited from class Controller
activate, get_name
 

Constructor Detail

MouseController

MouseController()

Method Detail

button

bool callback button(<int> button, <int> state, <int> x, <int> y)

grab

bool grab(<bool> state)

motion

bool callback motion(<int> buttonmask, <int> x, <int> y, <int> xrel, <int> yrel)

FreeJ scripting

| FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.
Send inquiries & questions to dyne.org's hackers.
Documentation generated by JSDoc on Thu May 29 20:56:52 2008