Struct GamePadTriggers
Describes the state of a GamePad trigger buttons.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public struct GamePadTriggers : IEquatable<GamePadTriggers>
Properties
Left
Gets the offset of the left trigger button, between 0.0 and 1.0.
Declaration
public readonly float Left { get; }
Property Value
Type | Description |
---|---|
Single |
Right
Gets the offset of the left trigger button, between 0.0 and 1.0.
Declaration
public readonly float Right { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
Equals(GamePadTriggers)
Determines whether the specified GamePadTriggers is equal to the current GamePadTriggers.
Declaration
public bool Equals(GamePadTriggers other)
Parameters
Type | Name | Description |
---|---|---|
GamePadTriggers | other | The GamePadTriggers to compare with the current GamePadTriggers. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Determines whether the specified Object is equal to the current GamePadTriggers.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with the current GamePadTriggers. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a GamePadTriggers object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table. |
Overrides
ToString()
Returns a String that represents the current GamePadTriggers.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents the current GamePadTriggers. |
Overrides
Operators
Equality(GamePadTriggers, GamePadTriggers)
Declaration
public static bool operator ==(GamePadTriggers left, GamePadTriggers right)
Parameters
Type | Name | Description |
---|---|---|
GamePadTriggers | left | A GamePadTriggers instance to test for equality. |
GamePadTriggers | right | A GamePadTriggers instance to test for equality. |
Returns
Type | Description |
---|---|
Boolean |
Inequality(GamePadTriggers, GamePadTriggers)
Declaration
public static bool operator !=(GamePadTriggers left, GamePadTriggers right)
Parameters
Type | Name | Description |
---|---|---|
GamePadTriggers | left | A GamePadTriggers instance to test for equality. |
GamePadTriggers | right | A GamePadTriggers instance to test for equality. |
Returns
Type | Description |
---|---|
Boolean |