Struct GamePadTriggers
Describes the state of a GamePad trigger buttons.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: cs.temp.dll.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 float Left { get; }
Property Value
Type | Description |
---|---|
System.Single |
Right
Gets the offset of the left trigger button, between 0.0 and 1.0.
Declaration
public float Right { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Boolean |
|
Equals(Object)
Determines whether the specified System.Object is equal to the current GamePadTriggers.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current GamePadTriggers. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a GamePadTriggers object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.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 System.String that represents the current GamePadTriggers.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.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 |
---|---|
System.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 |
---|---|
System.Boolean |