PlayerController Class |
Namespace: Rewired
public class PlayerController
The PlayerController type exposes the following members.
Name | Description | |
---|---|---|
![]() | axes |
The list of Axes in the controller.
|
![]() | axisCount |
The number of Axes in the controller.
|
![]() | buttonCount |
The number of Buttons in the controller.
|
![]() | buttons |
The list of Buttons in the controller.
|
![]() | elementCount |
The number of Elements in the controller.
|
![]() | elements |
The list of Elements of all types in the controller.
|
![]() | enabled |
Is the controller enabled?
|
![]() | playerId |
The Player id of the Player used for the source of input.
|
Name | Description | |
---|---|---|
![]() | GetAxis |
Gets the current axis value.
|
![]() | GetAxisRaw |
Gets the current raw axis value.
|
![]() | GetButton |
Gets the current value of the button.
|
![]() | GetButtonDown |
Gets the down state of the button. Returns True only on the first frame the button was pressed.
|
![]() | GetButtonUp |
Gets the up state of the button. Returns True only on the first frame the button was released.
|
![]() | GetElement(Int32) |
Gets the element at the specified index.
|
![]() | GetElementT(Int32) |
Gets the element at the specified index.
|
Name | Description | |
---|---|---|
![]() | AxisValueChangedEvent |
Triggered when the axis value changes.
|
![]() | ButtonStateChangedEvent |
Triggered the first frame the button is pressed or released.
|
![]() | EnabledStateChangedEvent |
Triggered when the controller is enabled or disabled.
|