Click or drag to resize

Controller Methods

The Controller type exposes the following members.

Methods
  NameDescription
Public methodGetAnyButton
Gets the button held state of any hardware button. This will return TRUE as long as any button is held. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetAnyButtonChanged
Returns true if any button has changed state from the previous frame to the current. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetAnyButtonDown
Gets the button just pressed state of any hardware button. This will only return TRUE only on the first frame the button is pressed This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetAnyButtonPrev
Gets the previous button held state of any hardware button. This will return TRUE if any button was held in the previous frame. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetAnyButtonUp
Gets the button just released state of any hardware button. This will only return TRUE only on the first frame the button is released This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButton
Gets the button held state of the hardware button at the specified index. This will return TRUE as long as the button is held. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonById
Gets the button held state of the hardware button at the specified element identifier id. This will return TRUE as long as the button is held. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonChanged
Returns true if the button has changed state from the previous frame to the current. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonDoublePressDown(Int32)
Gets the double press down state of the button at the specified index. This will return TRUE only on the first frame the double press is detected. This will use the default double press speed.
Public methodGetButtonDoublePressDown(Int32, Single)
Gets the double press down state of the button at the specified index. This will return TRUE only on the first frame the double press is detected.
Public methodGetButtonDoublePressDownById(Int32)
Gets the double press down state of the button at the specified element identifier id. This will return TRUE only on the first frame the double press is detected. This will use the default double press speed.
Public methodGetButtonDoublePressDownById(Int32, Single)
Gets the double press down state of the button at the specified element identifier id. This will return TRUE only on the first frame the double press is detected.
Public methodGetButtonDoublePressHold(Int32)
Gets the double press and hold state of the button at the specified index. This will return TRUE after the double press is detected and for as long as the button is held thereafter. This will use the default double press speed.
Public methodGetButtonDoublePressHold(Int32, Single)
Gets the double press and hold state of the button at the specified index. This will return TRUE after the double press is detected and for as long as the button is held thereafter.
Public methodGetButtonDoublePressHoldById(Int32)
Gets the double press and hold state of the button at the specified element identifier id. This will return TRUE after the double press is detected and for as long as the button is held thereafter. This will use the default double press speed.
Public methodGetButtonDoublePressHoldById(Int32, Single)
Gets the double press and hold state of the button at the specified element identifier id. This will return TRUE after the double press is detected and for as long as the button is held thereafter.
Public methodGetButtonDown
Gets the button just pressed state of the hardware button at the specified index. This will only return TRUE only on the first frame the button is pressed This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonDownById
Gets the button just pressed state of the hardware button at the specified element identifier id. This will only return TRUE only on the first frame the button is pressed This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonIndexById
Gets the index of the Button with the specified element idenfitier id.
Public methodGetButtonLastTimePressed
Gets the last timestamp the button at index was active.
Public methodGetButtonLastTimePressedById
Gets the last timestamp the button with the element identifier id was active.
Public methodGetButtonLastTimeUnpressed
Gets the last timestamp the button at index was inactive.
Public methodGetButtonLastTimeUnpressedById
Gets the last timestamp the button with the element identifier id was inactive.
Public methodGetButtonPrev
Gets the previous button held state of the hardware button at the specified index. This will return TRUE if the button was held in the previous frame. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonPrevById
Gets the previous button held state of the hardware button at the specified element identifier id. This will return TRUE if the button was held in the previous frame. This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonTimePressed
Gets the length of time the button at index has been active.
Public methodGetButtonTimePressedById
Gets the length of time the button with the element identifier id has been active.
Public methodGetButtonTimeUnpressed
Gets the length of time the button at index has been inactive.
Public methodGetButtonTimeUnpressedById
Gets the length of time the button with the element identifier id has been inactive.
Public methodGetButtonUp
Gets the button just released state of the hardware button at the specified index. This will only return TRUE only on the first frame the button is released This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetButtonUpById
Gets the button just released state of the hardware button at the specified element identifier id. This will only return TRUE only on the first frame the button is released This does not take into acount any controller mapping or Actions -- this is the unmapped physical button value only. Use the Player class to get button values mapped to Actions.
Public methodGetCompoundElementById
Gets the Compound Element with the specified element identifier id.
Public methodGetCompundElementById Obsolete.
OBSOLETE: This method is deprecated. Use GetCompoundElementById(Int32) instead. Gets the Compound Element with the specified element identifier id.
Public methodGetElementById
Gets the Element with the specified element identifier id.
Public methodGetElementIdentifierById
Gets a Controller Element Identifier by id.
Public methodGetExtensionT
Gets an object used to access controller and platform-specific controller functions.
Public methodGetLastTimeActive
Gets the last timestamp any button was active. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
Public methodGetLastTimeActive(Boolean)
Gets the last timestamp any button was active. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
Public methodGetLastTimeAnyButtonChanged
Gets the last timestamp any button's state changed. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
Public methodGetLastTimeAnyButtonPressed
Gets the last timestamp any button was active. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
Public methodGetLastTimeAnyElementChanged
Gets the last timestamp any element changed state. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime.
Public methodGetLastTimeAnyElementChanged(Boolean)
Gets the last timestamp any element changed state. NOTE: If comparing time against current time, always compare to ReInput.time.unscaledTime. Use raw axis values
Public methodGetTemplate(Guid)
Gets a Controller Template by type GUID.
Public methodGetTemplate(Type)
Gets a Controller Template by type.
Public methodGetTemplateT
Gets the first Controller Template that implements the specified type. Note that it is possible to have multiple Controller Templates that implement a specific type of interface such as IControllerTemplate. You should use the most specific interface type possible such as IDualAnalogGamepadTemplate instead, which would be guaranteed to only apply to a single Controller Template.
Public methodImplementsTemplate(Guid)
Determines if the Controller implements a Controller Template by type GUID.
Public methodImplementsTemplate(Type)
Determines if the Controller implements a Controller Template by type.
Public methodImplementsTemplateT
Determines if the Controller implements a Controller Template by type.
Public methodPollForAllButtons
Public methodPollForAllButtonsDown
Public methodPollForAllElements
Public methodPollForAllElementsDown
Public methodPollForFirstButton
Public methodPollForFirstButtonDown
Public methodPollForFirstElement
Public methodPollForFirstElementDown
Top
See Also