Show / Hide Table of Contents

Struct GamePadTriggers

Describes the state of a GamePad trigger buttons.

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

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

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

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

Overrides
System.ValueType.Equals(System.Object)

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

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
System.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
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

Implements

System.IEquatable<T>
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX