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 )
Gets the capabilites of the connected gamepad. More...
GamePadState GetState ( PlayerIndex index )
Gets the current state of a gamepad with an independent axes dead zone. More...
GamePadState GetState ( PlayerIndex index, GamePadDeadZone deadZoneMode )
Gets the current state of a gamepad, using a specified dead zone on thumb stick positions. More...
bool SetVibration ( PlayerIndex index, float leftMotor, float rightMotor )
Sets the vibration motor speeds on the gamepad, 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

None

Privilege Level

Non-privilege

Version

4.4.0

Public Static Functions

GamePadCapabilities GetCapabilities(PlayerIndex index)

   Gets the capabilites of the connected gamepad.

Parameters

index
   PlayerIndex of the gamepad you want to query.

Returns

The capabilites of the gamepad.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadState GetState(PlayerIndex index)

   Gets the current state of a gamepad with an independent axes dead zone.

Parameters

index
   PlayerIndex of the gamepad you want to query.

Returns

The state of the gamepad.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadState GetState(PlayerIndex index, GamePadDeadZone deadZoneMode)

   Gets the current state of a gamepad, using a specified dead zone on thumb stick positions.

Parameters

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

Returns

The state of the gamepad.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

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

   Sets the vibration motor speeds on the gamepad, if supported.

Parameters

index
   PlayerIndex of the gamepad 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

None

Privilege Level

Non-privilege

Version

4.4.0