public static void init() { keyPressedCallback = null; keyReleasedCallback = null; padMovedCallback = null; buttonPressedCallback = null; buttonReleasedCallback = null; mouseMovedCallback = null; mousePressedCallback = null; mouseReleasedCallback = null; }
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; }
public static void setMouseMovedCallback(MouseMovedCallback callback) { mouseMovedCallback = callback; }