Example #1
0
 public static void init()
 {
     keyPressedCallback     = null;
     keyReleasedCallback    = null;
     padMovedCallback       = null;
     buttonPressedCallback  = null;
     buttonReleasedCallback = null;
     mouseMovedCallback     = null;
     mousePressedCallback   = null;
     mouseReleasedCallback  = null;
 }
Example #2
0
        public static void clearCallbacks()
        {
            // Clear callbacks
            keyPressedCallback     = null;
            keyReleasedCallback    = null;
            padMovedCallback       = null;
            buttonPressedCallback  = null;
            buttonReleasedCallback = null;
            mouseMovedCallback     = null;
            mousePressedCallback   = null;
            mouseReleasedCallback  = null;

            // Reset states
            oldMouse    = newMouse;
            oldKeyboard = newKeyboard;
            oldGamePad  = newGamePad;
        }
Example #3
0
 public static void setMouseMovedCallback(MouseMovedCallback callback)
 {
     mouseMovedCallback = callback;
 }