메소드 | 설명 | |
---|---|---|
ContainsBool ( ActionType actionType ) : bool |
Determines whether [contains] [the specified action type]. If so, returns true. If not, returns false.
|
|
ContainsFloat ( ActionType actionType ) : float |
Determines whether [contains] [the specified action type]. If so, returns the ActionQuantity associated with it. If not, returns 0.
|
|
Controller ( PlayerIndex playerIndex ) : System |
Initializes a new instance of the Controller class.
|
|
Rumble ( float leftMotorAmount, float rightMotorAmount, long durationInTicks ) : void |
Rumbles the controller.
|
|
SetPlayerIndex ( PlayerIndex index ) : void |
Sets the index of the controller for the player on the xbox.
|
|
Update ( ) : void |
Updates the Contoller method, saving the conroller state and incrementing time. It is important that this is only called once per game Update, and this should be called first.
|
메소드 | 설명 | |
---|---|---|
CheckAndSetActive ( ) : void |
Checks all controller that are plugged in and and if that controller is pressing a button, it sets it as the active controller.
|
|
GetActions ( ) : void |
Returns a list of actions that the player has performed based on the controller input at the instance that this method is called.
|
public ContainsBool ( ActionType actionType ) : bool | ||
actionType | ActionType | Type of the action. |
리턴 | bool |
public ContainsFloat ( ActionType actionType ) : float | ||
actionType | ActionType | Type of the action. |
리턴 | float |
public Controller ( PlayerIndex playerIndex ) : System | ||
playerIndex | PlayerIndex | Index of the player. |
리턴 | System |
public Rumble ( float leftMotorAmount, float rightMotorAmount, long durationInTicks ) : void | ||
leftMotorAmount | float | The left motor amount, in [0, 1]. |
rightMotorAmount | float | The right motor amount, in [0, 1]. |
durationInTicks | long | The duration in ticks (10,000,000 ticks/second). |
리턴 | void |
public SetPlayerIndex ( PlayerIndex index ) : void | ||
index | PlayerIndex | The index of the controller. |
리턴 | void |