Input.h
274 void Init(); void InitAfter(); void RunBefore(); void RunAfter(); void DrawBefore(); void DrawAfter();
virtual void OnHold()
Function called upon holding the button.
Definition: Input.h:64
static int MouseXDelta()
Returns the change in X position since last update.
static float GetPadAxis(PadID, PadAxes)
Returns the axis tilt amount. The range is from -1 to 1.
static bool LockInput(float sec)
Prevents the updating of Input until the time expires.
Definition: AssetID.h:37
Callback functor base class. To implement a callback signal, create a class that inherits from this a...
Definition: Input.h:57
virtual void OnPress()
Function called upon pressing of the button.
Definition: Input.h:61
static void UnmapInput(const std::string &id)
Disassociates a string with its corresponding InputID if any.
static InputManager * GetManager()
Returns the system-dependent object that handles input requests.
virtual void OnRelease()
Function called upon releasing the button.
Definition: Input.h:68
static std::vector< PadID > QueryPads()
Retrieves the a list of all valid Gamepads.
static int MouseYDelta()
Returns the change in Y position since the last update.
virtual void OnNewUnicode(int unicodeValue)
An incoming unicode value.
Definition: Input.h:77
Callbacck functor for unicode values from a user's keyboard.
Definition: Input.h:73
static void AddListener(ButtonListener *, Keyboard)
Maps an InputCallback to the specifed key.
static void RemoveListener(ButtonListener *)
Disassociates the corresponding InputCallback if any.