top

'Tizen::TV::Accessory::GamePadState' struct Reference

Public Static Attributes

readonly GamePadState Default
The default initialized gamepad state. More...

Properties

bool IsConnected
Indicates whether the gamepad is connected. More...
int PacketNumber
Gets the packet number associated with this state. More...
GamePadButtons Buttons
A structure identifying which gamepad buttons are pressed. More...
GamePadDPad DPad
A struct identifying which gamepad directional pad buttons are pressed. More...
GamePadThumbSticks ThumbSticks
A structure indicating the position of thumb sticks. More...
GamePadTriggers Triggers
A structure indicating the position of triggers. More...

Public Static Functions

Public Functions

GamePadState ( Vector2 leftThumbStick, Vector2 rightThumbStick, float leftTrigger, float rightTrigger, Buttons buttons )
Initializes a new instance of the GamePadState class with the specified stick, trigger, and button values. More...
bool IsButtonDown ( Buttons button )
Determines whether specified input device buttons are pressed in this GamePadState. More...
bool IsButtonUp ( Buttons button )
Determines whether specified buttons are up (not pressed) in this instance. More...
override bool Equals ( object obj )
Checks whether this instance is equal to a specified object. More...
override string ToString ( )
Retrieves a string representation of this object. More...
override int GetHashCode ( )
Gets the hash code for this instance. More...

Public Static Attributes

readonly GamePadState Default

   The default initialized gamepad state.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

Properties

bool IsConnected

   Indicates whether the gamepad is connected.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

int PacketNumber

   Gets the packet number associated with this state.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadButtons Buttons

   A structure identifying which gamepad buttons are pressed.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadDPad DPad

   A struct identifying which gamepad directional pad buttons are pressed.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadThumbSticks ThumbSticks

   A structure indicating the position of thumb sticks.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadTriggers Triggers

   A structure indicating the position of triggers.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

Public Static Functions

bool operator!=(GamePadState left, GamePadState right)

   Determines whether two GamePadState instances are not equal.

Parameters

left
   Object on the left of the equal sign.
right
   Object on the right of the equal sign.

Returns

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

bool operator==(GamePadState left, GamePadState right)

   Determines whether two GamePadState instances are equal.

Parameters

left
   Object on the left of the equal sign.
right
   Object on the right of the equal sign.

Returns

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

Public Functions

GamePadState(GamePadThumbSticks thumbSticks, GamePadTriggers triggers, GamePadButtons buttons, GamePadDPad dPad)

   Initializes a new instance of the GamePadState class using the specified GamePadThumbSticks, GamePadTriggers, GamePadButtons, and GamePadDPad.

Parameters

thumbSticks
   Initial thumbstick state.
triggers
   Initial trigger state.
buttons
   Initial button state.
dPad
   Initial directional pad state.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

GamePadState(Vector2 leftThumbStick, Vector2 rightThumbStick, float leftTrigger, float rightTrigger, Buttons buttons)

   Initializes a new instance of the GamePadState class with the specified stick, trigger, and button values.

Parameters

leftThumbStick
   Left stick value. Each axis is clamped between -1.0 and 1.0.
rightThumbStick
   Right stick value. Each axis is clamped between -1.0 and 1.0.
leftTrigger
   Left trigger value. This value is clamped between 0.0 and 1.0.
rightTrigger
   Right trigger value. This value is clamped between 0.0 and 1.0.
buttons
   Array or parameter list of Buttons to initialize as pressed.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

bool IsButtonDown(Buttons button)

   Determines whether specified input device buttons are pressed in this GamePadState.

Parameters

button
   Buttons to query. Specify a single button, or combine multiple buttons using a bitwise OR operation.

Returns

true if all specified buttons are pressed; false otherwise.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

bool IsButtonUp(Buttons button)

   Determines whether specified buttons are up (not pressed) in this instance.

Parameters

button
   Buttons to query. Specify a single button, or combine multiple buttons using a bitwise OR operation.

Returns

true if any specified buttons are up; false otherwise.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

override bool Equals(object obj)

   Checks whether this instance is equal to a specified object.

Parameters

obj
   Object to compare with.

Returns

true if the current instance is equal to the specified object; false otherwise.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

override string ToString()

   Retrieves a string representation of this object.

Returns

String representation of this object.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0

override int GetHashCode()

   Gets the hash code for this instance.

Returns

Hash code for this object.

Privilege

None

Privilege Level

Non-privilege

Version

4.4.0