C# Class ControllerLinOSX, Coliseo

Inheritance: Controller
Afficher le fichier Open project: lmucs/Coliseo

Méthodes publiques

Méthode Description
FixedUpdate ( ) : void

Must be called each frame to ensure accurate reading of *(Down|Up)

GetBumper ( uint bumper ) : bool

Returns true while the specified /bumper/ is held down.

GetBumperDown ( uint bumper ) : bool

Returns true during the frame the user pressed the given /bumper/.

GetBumperUp ( uint bumper ) : bool

Returns true during the frame the user released the given /bumper/.

GetButton ( uint button ) : bool

Returns true while the specified /button/ is held down.

GetButtonDown ( uint button ) : bool

Returns true during the frame the user pressed the given /button/.

GetButtonUp ( uint button ) : bool

Returns true during the frame the user released the given /button/.

GetDPad ( uint direction ) : bool

Returns true while the specified /direction/ is held down.

GetDPadDown ( uint direction ) : bool

Returns true during the frame the user pressed the given /direction/.

GetDPadUp ( uint direction ) : bool

Returns true during the frame the user released the given /direction/.

GetStick ( uint stick ) : Vector2

Returns the values of the axes of the specified /stick/.

GetTrigger ( uint trigger ) : bool

Returns true if the specified /trigger/ is fully pressed.

GetTriggerDown ( uint trigger ) : bool

Returns true during the frame the user fully pressed the given /trigger/.

GetTriggerUp ( uint trigger ) : bool

Returns true during the frame the user fully released the given /trigger/.

IsConnected ( ) : bool

Returns true if a controller is connected.

vibrate ( uint motor, float intensity ) : void

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.

Method Details

FixedUpdate() public méthode

Must be called each frame to ensure accurate reading of *(Down|Up)
public FixedUpdate ( ) : void
Résultat void

GetBumper() public méthode

Returns true while the specified /bumper/ is held down.
public GetBumper ( uint bumper ) : bool
bumper uint
Résultat bool

GetBumperDown() public méthode

Returns true during the frame the user pressed the given /bumper/.
public GetBumperDown ( uint bumper ) : bool
bumper uint
Résultat bool

GetBumperUp() public méthode

Returns true during the frame the user released the given /bumper/.
public GetBumperUp ( uint bumper ) : bool
bumper uint
Résultat bool

GetButton() public méthode

Returns true while the specified /button/ is held down.
public GetButton ( uint button ) : bool
button uint
Résultat bool

GetButtonDown() public méthode

Returns true during the frame the user pressed the given /button/.
public GetButtonDown ( uint button ) : bool
button uint
Résultat bool

GetButtonUp() public méthode

Returns true during the frame the user released the given /button/.
public GetButtonUp ( uint button ) : bool
button uint
Résultat bool

GetDPad() public méthode

Returns true while the specified /direction/ is held down.
public GetDPad ( uint direction ) : bool
direction uint
Résultat bool

GetDPadDown() public méthode

Returns true during the frame the user pressed the given /direction/.
public GetDPadDown ( uint direction ) : bool
direction uint
Résultat bool

GetDPadUp() public méthode

Returns true during the frame the user released the given /direction/.
public GetDPadUp ( uint direction ) : bool
direction uint
Résultat bool

GetStick() public méthode

Returns the values of the axes of the specified /stick/.
public GetStick ( uint stick ) : Vector2
stick uint
Résultat Vector2

GetTrigger() public méthode

Returns true if the specified /trigger/ is fully pressed.
public GetTrigger ( uint trigger ) : bool
trigger uint
Résultat bool

GetTriggerDown() public méthode

Returns true during the frame the user fully pressed the given /trigger/.
public GetTriggerDown ( uint trigger ) : bool
trigger uint
Résultat bool

GetTriggerUp() public méthode

Returns true during the frame the user fully released the given /trigger/.
public GetTriggerUp ( uint trigger ) : bool
trigger uint
Résultat bool

IsConnected() public méthode

Returns true if a controller is connected.
public IsConnected ( ) : bool
Résultat bool

vibrate() public méthode

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.
public vibrate ( uint motor, float intensity ) : void
motor uint
intensity float
Résultat void