Click or drag to resize

PlayerController Class

A controller that uses Player Actions as the input sources for controller elements.
Inheritance Hierarchy
SystemObject
  RewiredPlayerController
    RewiredPlayerMouse

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class PlayerController

The PlayerController type exposes the following members.

Properties
  NameDescription
Public propertyaxes
The list of Axes in the controller.
Public propertyaxisCount
The number of Axes in the controller.
Public propertybuttonCount
The number of Buttons in the controller.
Public propertybuttons
The list of Buttons in the controller.
Public propertyelementCount
The number of Elements in the controller.
Public propertyelements
The list of Elements of all types in the controller.
Public propertyenabled
Is the controller enabled?
Public propertyplayerId
The Player id of the Player used for the source of input.
Top
Methods
  NameDescription
Public methodGetAxis
Gets the current axis value.
Public methodGetAxisRaw
Gets the current raw axis value.
Public methodGetButton
Gets the current value of the button.
Public methodGetButtonDown
Gets the down state of the button. Returns True only on the first frame the button was pressed.
Public methodGetButtonUp
Gets the up state of the button. Returns True only on the first frame the button was released.
Public methodGetElement(Int32)
Gets the element at the specified index.
Public methodGetElementT(Int32)
Gets the element at the specified index.
Top
Events
  NameDescription
Public eventAxisValueChangedEvent
Triggered when the axis value changes.
Public eventButtonStateChangedEvent
Triggered the first frame the button is pressed or released.
Public eventEnabledStateChangedEvent
Triggered when the controller is enabled or disabled.
Top
See Also