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 Game Controller is connected. More...
int PacketNumber
Gets the packet number associated with this state. More...
GamePadButtons Buttons
Returns a structure that identifies what buttons on the Game controller are pressed. More...
GamePadDPad DPad
Returns a structure that identifies what directions of the directional pad on the Game Controller are pressed. More...
GamePadThumbSticks ThumbSticks
Returns a structure that indicates the position of the Game Controller sticks (thumbsticks). More...
GamePadTriggers Triggers
Returns a structure that identifies the position of triggers on the Game Controller. 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 input device buttons are up (not pressed) in this GamePadState . More...
override bool Equals ( object obj )
Returns a value that indicates whether the current 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 Level

Non-privilege

Privilege

None

Version

4.4.0

Properties

bool IsConnected

   Indicates whether the Game Controller is connected.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

int PacketNumber

   Gets the packet number associated with this state.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadButtons Buttons

   Returns a structure that identifies what buttons on the Game controller are pressed.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadDPad DPad

   Returns a structure that identifies what directions of the directional pad on the Game Controller are pressed.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadThumbSticks ThumbSticks

   Returns a structure that indicates the position of the Game Controller sticks (thumbsticks).

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

GamePadTriggers Triggers

   Returns a structure that identifies the position of triggers on the Game Controller.

Privilege Level

Non-privilege

Privilege

None

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 Level

Non-privilege

Privilege

None

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 Level

Non-privilege

Privilege

None

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 Level

Non-privilege

Privilege

None

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 Level

Non-privilege

Privilege

None

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 Level

Non-privilege

Privilege

None

Version

4.4.0

bool IsButtonUp(Buttons button)

   Determines whether specified input device buttons are up (not 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 any specified buttons are up; false otherwise.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

override bool Equals(object obj)

   Returns a value that indicates whether the current instance is equal to a specified object.

Parameters

obj
   Object with which to make the comparison.

Returns

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

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

override string ToString()

   Retrieves a string representation of this object.

Returns

String representation of this object.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

override int GetHashCode()

   Gets the hash code for this instance.

Returns

Hash code for this object.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0