Show / Hide Table of Contents

Struct GamePadThumbSticks

Describes the current thumb stick state of a GamePad device

Implements
IEquatable<GamePadThumbSticks>
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public struct GamePadThumbSticks : IEquatable<GamePadThumbSticks>

Properties

Left

Gets a Vector2 describing the state of the left thumb stick.

Declaration
public readonly Vector2 Left { get; }
Property Value
Type Description
Vector2

Right

Gets a Vector2 describing the state of the right thumb stick.

Declaration
public readonly Vector2 Right { get; }
Property Value
Type Description
Vector2

Methods

Equals(GamePadThumbSticks)

Determines whether the specified GamePadThumbSticks is equal to the current GamePadThumbSticks.

Declaration
public bool Equals(GamePadThumbSticks other)
Parameters
Type Name Description
GamePadThumbSticks other

The GamePadThumbSticks to compare with the current GamePadThumbSticks.

Returns
Type Description
Boolean

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

Equals(Object)

Determines whether the specified Object is equal to the current GamePadThumbSticks.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

The Object to compare with the current GamePadThumbSticks.

Returns
Type Description
Boolean

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

Overrides
ValueType.Equals(Object)

GetHashCode()

Serves as a hash function for a GamePadThumbSticks 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 GamePadThumbSticks.

Declaration
public override string ToString()
Returns
Type Description
String

A String that represents the current GamePadThumbSticks.

Overrides
ValueType.ToString()

Operators

Equality(GamePadThumbSticks, GamePadThumbSticks)

Declaration
public static bool operator ==(GamePadThumbSticks left, GamePadThumbSticks right)
Parameters
Type Name Description
GamePadThumbSticks left

A GamePadThumbSticks instance to test for equality.

GamePadThumbSticks right

A GamePadThumbSticks instance to test for equality.

Returns
Type Description
Boolean

Inequality(GamePadThumbSticks, GamePadThumbSticks)

Declaration
public static bool operator !=(GamePadThumbSticks left, GamePadThumbSticks right)
Parameters
Type Name Description
GamePadThumbSticks left

A GamePadThumbSticks instance to test for inequality.

GamePadThumbSticks right

A GamePadThumbSticks instance to test for inequality.

Returns
Type Description
Boolean

Implements

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