Show / Hide Table of Contents

Struct GamePadTriggers

Describes the state of a GamePad trigger buttons.

Implements
IEquatable<GamePadTriggers>
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
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

true if the specified GamePadTriggers is equal to the current GamePadTriggers; otherwise, false.

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

true if the specified Object is equal to the current GamePadTriggers; otherwise, false.

Overrides
ValueType.Equals(Object)

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
ValueType.GetHashCode()

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
ValueType.ToString()

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

Implements

System.IEquatable<T>
In This Article
Back to top Generated by DocFX