Button Properties |
The ControllerButton type exposes the following members.
Name | Description | |
---|---|---|
compoundElement |
Returns the Compound Element parent of this element if any.
Returns null if this Element is not a member of a Compound Element.
(Inherited from ControllerElement.) | |
doublePressedAndHeld |
Was this button double pressed and then held? Returns true until released.
| |
elementIdentifier |
The controller element identifier.
(Inherited from ControllerElement.) | |
isMemberElement |
Returns True if the element is a member of a compound element such as an Axis2D.
(Inherited from ControllerElement.) | |
isPressureSensitive |
Is this button pressure sensitive?
| |
justChangedState |
Returns true if the button was just pressed or just released. Returns true for only one frame.
| |
justDoublePressed |
Was this button just double pressed this frame? Returns true for only one frame.
| |
justPressed |
Was this button just pressed this frame? Returns true for only one frame. Functions the same as GetButtonDown.
| |
justReleased |
Was this button just released this frame? Returns true for only one frame. Functions the same as GetButtonUp.
| |
lastTimePressed |
Gets the last time the button was active.
NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
| |
lastTimeStateChanged |
Gets the last time the button changed state.
NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
| |
lastTimeUnpressed |
Gets the last time the button was inactive.
NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
| |
pressure |
The current pressure on the button. [0.0 - 1.0]
| |
pressurePrev |
The pressure on the button in the previous frame. [0.0 - 1.0]
| |
timePressed |
The time in seconds this button has been active.
| |
timeUnpressed |
The time in seconds this button has been inactive.
| |
value |
The current state of the button.
| |
valuePrev |
The state of the button in the previous frame
|