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.GamePadTriggers Struct Reference

Describes the state of a GamePad trigger buttons. More...

Inherits IEquatable< GamePadTriggers >.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

const float ConversionFactor = 1.0f / byte.MaxValue
 
byte left
 
byte right
 

Properties

float Left [get]
 Gets the offset of the left trigger button, between 0.0 and 1.0. More...
 
float Right [get]
 Gets the offset of the left trigger button, between 0.0 and 1.0. More...
 

Detailed Description

Describes the state of a GamePad trigger buttons.

Member Function Documentation

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

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

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

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

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

Serves as a hash function for a OpenTK.Input.GamePadTriggers 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.GamePadTriggers.operator!= ( GamePadTriggers  left,
GamePadTriggers  right 
)
static
Parameters
leftA GamePadTriggers instance to test for equality.
rightA GamePadTriggers instance to test for equality.
static bool OpenTK.Input.GamePadTriggers.operator== ( GamePadTriggers  left,
GamePadTriggers  right 
)
static
Parameters
leftA GamePadTriggers instance to test for equality.
rightA GamePadTriggers instance to test for equality.
override string OpenTK.Input.GamePadTriggers.ToString ( )

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

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

Property Documentation

float OpenTK.Input.GamePadTriggers.Left
get

Gets the offset of the left trigger button, between 0.0 and 1.0.

float OpenTK.Input.GamePadTriggers.Right
get

Gets the offset of the left trigger button, between 0.0 and 1.0.