Show / Hide Table of Contents

Struct JoystickHatState

Describes the state of a joystick hat.

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

Properties

IsDown

Gets a System.Boolean indicating whether this hat lies in the bottom hemicircle.

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

true if this hat lies in the bottom hemicircle; otherwise, false.

IsLeft

Gets a System.Boolean indicating whether this hat lies in the left hemicircle.

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

true if this hat lies in the left hemicircle; otherwise, false.

IsRight

Gets a System.Boolean indicating whether this hat lies in the right hemicircle.

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

true if this hat lies in the right hemicircle; otherwise, false.

IsUp

Gets a System.Boolean indicating whether this hat lies in the top hemicircle.

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

true if this hat lies in the top hemicircle; otherwise, false.

Position

Gets a HatPosition value indicating the position of this hat.

Declaration
public HatPosition Position { get; }
Property Value
Type Description
HatPosition

The position.

Methods

Equals(JoystickHatState)

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

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

The JoystickHatState to compare with the current JoystickHatState.

Returns
Type Description
System.Boolean

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

Equals(Object)

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

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

The System.Object to compare with the current JoystickHatState.

Returns
Type Description
System.Boolean

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

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

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

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

A System.String that represents the current JoystickHatState.

Overrides
System.ValueType.ToString()

Implements

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