The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
OpenTK.Input.GamePadThumbSticks Struct Reference

Describes the current thumb stick state of a GamePad device More...

Inherits IEquatable< GamePadThumbSticks >.

Public Member Functions

override string ToString ()
 Returns a System.String that represents the current OpenTK.Input.GamePadThumbSticks. More...
 
override int GetHashCode ()
 Serves as a hash function for a OpenTK.Input.GamePadThumbSticks object. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current OpenTK.Input.GamePadThumbSticks. More...
 
bool Equals (GamePadThumbSticks other)
 Determines whether the specified OpenTK.Input.GamePadThumbSticks is equal to the current OpenTK.Input.GamePadThumbSticks. More...
 

Static Public Member Functions

static bool operator== (GamePadThumbSticks left, GamePadThumbSticks right)
 
static bool operator!= (GamePadThumbSticks left, GamePadThumbSticks right)
 

Public Attributes

const float ConversionFactor = 1.0f / short.MaxValue
 
short left_x
 
short left_y
 
short right_x
 
short right_y
 

Properties

Vector2 Left [get]
 Gets a Vector2 describing the state of the left thumb stick. More...
 
Vector2 Right [get]
 Gets a Vector2 describing the state of the right thumb stick. More...
 

Detailed Description

Describes the current thumb stick state of a GamePad device

Member Function Documentation

override bool OpenTK.Input.GamePadThumbSticks.Equals ( object  obj)

Determines whether the specified System.Object is equal to the current OpenTK.Input.GamePadThumbSticks.

Parameters
objThe System.Object to compare with the current OpenTK.Input.GamePadThumbSticks.
Returns
true if the specified System.Object is equal to the current OpenTK.Input.GamePadThumbSticks; otherwise, false.
bool OpenTK.Input.GamePadThumbSticks.Equals ( GamePadThumbSticks  other)

Determines whether the specified OpenTK.Input.GamePadThumbSticks is equal to the current OpenTK.Input.GamePadThumbSticks.

Parameters
otherThe OpenTK.Input.GamePadThumbSticks to compare with the current OpenTK.Input.GamePadThumbSticks.
Returns
true if the specified OpenTK.Input.GamePadThumbSticks is equal to the current OpenTK.Input.GamePadThumbSticks; otherwise, false.
override int OpenTK.Input.GamePadThumbSticks.GetHashCode ( )

Serves as a hash function for a OpenTK.Input.GamePadThumbSticks object.

Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
static bool OpenTK.Input.GamePadThumbSticks.operator!= ( GamePadThumbSticks  left,
GamePadThumbSticks  right 
)
static
Parameters
leftA GamePadThumbSticks instance to test for inequality.
rightA GamePadThumbSticks instance to test for inequality.
static bool OpenTK.Input.GamePadThumbSticks.operator== ( GamePadThumbSticks  left,
GamePadThumbSticks  right 
)
static
Parameters
leftA GamePadThumbSticks instance to test for equality.
rightA GamePadThumbSticks instance to test for equality.
override string OpenTK.Input.GamePadThumbSticks.ToString ( )

Returns a System.String that represents the current OpenTK.Input.GamePadThumbSticks.

Returns
A System.String that represents the current OpenTK.Input.GamePadThumbSticks.

Property Documentation

Vector2 OpenTK.Input.GamePadThumbSticks.Left
get

Gets a Vector2 describing the state of the left thumb stick.

Vector2 OpenTK.Input.GamePadThumbSticks.Right
get

Gets a Vector2 describing the state of the right thumb stick.