Show / Hide Table of Contents

Struct GamePadDPad

Describes the state of a GamePad directional pad.

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

Properties

Down

Gets the ButtonState for the down button.

Declaration
public readonly ButtonState Down { get; }
Property Value
Type Description
ButtonState

ButtonState.Pressed if the down button is pressed; otherwise, ButtonState.Released.

IsDown

Gets a value indicating whether the down button is pressed.

Declaration
public bool IsDown { get; }
Property Value
Type Description
Boolean

true if the down button is pressed; otherwise, false.

IsLeft

Gets a value indicating whether the left button is pressed.

Declaration
public bool IsLeft { get; }
Property Value
Type Description
Boolean

true if the left button is pressed; otherwise, false.

IsRight

Gets a value indicating whether the right button is pressed.

Declaration
public bool IsRight { get; }
Property Value
Type Description
Boolean

true if the right button is pressed; otherwise, false.

IsUp

Gets a value indicating whether the up button is pressed.

Declaration
public bool IsUp { get; }
Property Value
Type Description
Boolean

true if the up button is pressed; otherwise, false.

Left

Gets the ButtonState for the left button.

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

ButtonState.Pressed if the left button is pressed; otherwise, ButtonState.Released.

Right

Gets the ButtonState for the right button.

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

ButtonState.Pressed if the right button is pressed; otherwise, ButtonState.Released.

Up

Gets the ButtonState for the up button.

Declaration
public readonly ButtonState Up { get; }
Property Value
Type Description
ButtonState

ButtonState.Pressed if the up button is pressed; otherwise, ButtonState.Released.

Methods

Equals(GamePadDPad)

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

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

The GamePadDPad to compare with the current GamePadDPad.

Returns
Type Description
Boolean

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

Equals(Object)

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

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

The Object to compare with the current GamePadDPad.

Returns
Type Description
Boolean

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

Overrides
ValueType.Equals(Object)

GetHashCode()

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

Declaration
public override string ToString()
Returns
Type Description
String

A String that represents the current GamePadDPad.

Overrides
ValueType.ToString()

Operators

Equality(GamePadDPad, GamePadDPad)

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

A GamePadDPad instance to test for equality.

GamePadDPad right

A GamePadDPad instance to test for equality.

Returns
Type Description
Boolean

Inequality(GamePadDPad, GamePadDPad)

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

A GamePadDPad instance to test for inequality.

GamePadDPad right

A GamePadDPad instance to test for inequality.

Returns
Type Description
Boolean

Implements

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