![]() |
Highroad Engine v1.3
|
IM button, short for InputManager button, a class used to handle button states, whether mobile or actual keys More...
Public Member Functions | |
delegate void | ButtonDownMethodDelegate () |
delegate void | ButtonPressedMethodDelegate () |
delegate void | ButtonUpMethodDelegate () |
bool | ButtonDownRecently (float time) |
returns true if this button was pressed down within the time (in unscaled seconds) passed in parameters More... | |
bool | ButtonUpRecently (float time) |
returns true if this button was released within the time (in unscaled seconds) passed in parameters More... | |
IMButton (string playerID, string buttonID, ButtonDownMethodDelegate btnDown=null, ButtonPressedMethodDelegate btnPressed=null, ButtonUpMethodDelegate btnUp=null) | |
virtual void | TriggerButtonDown () |
virtual void | TriggerButtonPressed () |
virtual void | TriggerButtonUp () |
Public Attributes | |
string | ButtonID |
the unique ID of this button More... | |
ButtonDownMethodDelegate | ButtonDownMethod |
ButtonPressedMethodDelegate | ButtonPressedMethod |
ButtonUpMethodDelegate | ButtonUpMethod |
Protected Attributes | |
float | _lastButtonDownAt |
float | _lastButtonUpAt |
Properties | |
MMStateMachine< MMInput.ButtonStates > | State [getprotected set] |
a state machine used to store button states More... | |
float | TimeSinceLastButtonDown [get] |
returns the time (in unscaled seconds) since the last time the button was pressed down More... | |
float | TimeSinceLastButtonUp [get] |
returns the time (in unscaled seconds) since the last time the button was released More... | |
IM button, short for InputManager button, a class used to handle button states, whether mobile or actual keys
MoreMountains.Tools.MMInput.IMButton.IMButton | ( | string | playerID, |
string | buttonID, | ||
ButtonDownMethodDelegate | btnDown = null , |
||
ButtonPressedMethodDelegate | btnPressed = null , |
||
ButtonUpMethodDelegate | btnUp = null |
||
) |
delegate void MoreMountains.Tools.MMInput.IMButton.ButtonDownMethodDelegate | ( | ) |
bool MoreMountains.Tools.MMInput.IMButton.ButtonDownRecently | ( | float | time | ) |
returns true if this button was pressed down within the time (in unscaled seconds) passed in parameters
delegate void MoreMountains.Tools.MMInput.IMButton.ButtonPressedMethodDelegate | ( | ) |
delegate void MoreMountains.Tools.MMInput.IMButton.ButtonUpMethodDelegate | ( | ) |
bool MoreMountains.Tools.MMInput.IMButton.ButtonUpRecently | ( | float | time | ) |
returns true if this button was released within the time (in unscaled seconds) passed in parameters
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
ButtonDownMethodDelegate MoreMountains.Tools.MMInput.IMButton.ButtonDownMethod |
string MoreMountains.Tools.MMInput.IMButton.ButtonID |
the unique ID of this button
ButtonPressedMethodDelegate MoreMountains.Tools.MMInput.IMButton.ButtonPressedMethod |
ButtonUpMethodDelegate MoreMountains.Tools.MMInput.IMButton.ButtonUpMethod |
|
getprotected set |
a state machine used to store button states
|
get |
returns the time (in unscaled seconds) since the last time the button was pressed down
|
get |
returns the time (in unscaled seconds) since the last time the button was released