top

'Tizen::TV::Accessory::GamePad' class Reference

Properties

int MaximumGamePadCount
The maximum number of game pads supported on this system. Attempting to access a gamepad index higher than this number will result in an InvalidOperationException being thrown by the API. More...

Public Static Functions

GamePadCapabilities GetCapabilities ( PlayerIndex index )
Returns the capabilites of the connected controller. More...
GamePadState GetState ( PlayerIndex index )
Gets the current state of a game pad controller with an independent axes dead zone. More...
GamePadState GetState ( PlayerIndex index, GamePadDeadZone deadZoneMode )
Gets the current state of a game pad controller, using a specified dead zone on analog stick positions. More...
bool SetVibration ( PlayerIndex index, float leftMotor, float rightMotor )
Sets the vibration motor speeds on the controller device if supported. More...

Properties

int MaximumGamePadCount

   The maximum number of game pads supported on this system. Attempting to access a gamepad index higher than this number will result in an InvalidOperationException being thrown by the API.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

Public Static Functions

GamePadCapabilities GetCapabilities(PlayerIndex index)

   Returns the capabilites of the connected controller.

Parameters

index
   PlayerIndex for the controller you want to query.

Returns

The capabilites of the controller.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadState GetState(PlayerIndex index)

   Gets the current state of a game pad controller with an independent axes dead zone.

Parameters

index
   PlayerIndex for the controller you want to query.

Returns

The state of the controller.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadState GetState(PlayerIndex index, GamePadDeadZone deadZoneMode)

   Gets the current state of a game pad controller, using a specified dead zone on analog stick positions.

Parameters

index
   PlayerIndex for the controller you want to query.
deadZoneMode
   Enumerated value that specifies what dead zone type to use.

Returns

The state of the controller.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

bool SetVibration(PlayerIndex index, float leftMotor, float rightMotor)

   Sets the vibration motor speeds on the controller device if supported.

Parameters

index
   PlayerIndex for the controller you want to query.
leftMotor
   The speed of the left motor, between 0.0 and 1.0. This motor is a low-frequency motor.
rightMotor
   The speed of the right motor, between 0.0 and 1.0. This motor is a high-frequency motor.

Returns

Returns true if the vibration motors were set.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0