C# Class ControllerLinOSX, Coliseo

Inheritance: Controller
Mostrar archivo Open project: lmucs/Coliseo

Public Methods

Method 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 method

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

GetBumper() public method

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

GetBumperDown() public method

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

GetBumperUp() public method

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

GetButton() public method

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

GetButtonDown() public method

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

GetButtonUp() public method

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

GetDPad() public method

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

GetDPadDown() public method

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

GetDPadUp() public method

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

GetStick() public method

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

GetTrigger() public method

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

GetTriggerDown() public method

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

GetTriggerUp() public method

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

IsConnected() public method

Returns true if a controller is connected.
public IsConnected ( ) : bool
return bool

vibrate() public method

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