Class: TMouseController

TMouseController

TMouseController allow single source of thruth for mouse state checking

new TMouseController()

Author:
License:
Source:
Example
(1) create a global variable:
     var keyboard = new TKeyboardController();
(2) during main loop:
      keyboard.update();
(3) check state of keys:
      keyboard.down("A")    -- true for one update cycle after key is pressed
      keyboard.pressed("A") -- true as long as key is being pressed
      keyboard.up("A")      -- true for one update cycle after key is released

 See TKeyboardController.k object data below for names of keys whose state can be polled