Show / Hide Table of Contents

Struct GamePadDPad

Describes the state of a GamePad directional pad.

Implements
System.IEquatable<GamePadDPad>
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 GamePadDPad : IEquatable<GamePadDPad>

Properties

Down

Gets the ButtonState for the down button.

Declaration
public 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
System.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
System.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
System.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
System.Boolean

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

Left

Gets the ButtonState for the left button.

Declaration
public 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 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 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
System.Boolean

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

Equals(Object)

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

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

The System.Object to compare with the current GamePadDPad.

Returns
Type Description
System.Boolean

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

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

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

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current GamePadDPad.

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

Implements

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