Show / Hide Table of Contents

Struct GamePadState

Describes the current state of a GamePad device.

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

Properties

Buttons

Gets a GamePadButtons structure describing the state of the GamePad buttons.

Declaration
public GamePadButtons Buttons { get; }
Property Value
Type Description
GamePadButtons

DPad

Gets a GamePadDPad structure describing the state of the GamePad directional pad.

Declaration
public GamePadDPad DPad { get; }
Property Value
Type Description
GamePadDPad

IsConnected

Gets a value indicating whether this GamePad instance is connected.

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

true if this instance is connected; otherwise, false.

PacketNumber

Gets the packet number for this GamePadState instance. Use the packet number to determine whether the state of a GamePad device has changed.

Declaration
public int PacketNumber { get; }
Property Value
Type Description
System.Int32

ThumbSticks

Gets a GamePadThumbSticks structure describing the state of the GamePad thumb sticks.

Declaration
public GamePadThumbSticks ThumbSticks { get; }
Property Value
Type Description
GamePadThumbSticks

Triggers

Gets a GamePadTriggers structure describing the state of the GamePad triggers.

Declaration
public GamePadTriggers Triggers { get; }
Property Value
Type Description
GamePadTriggers

Methods

Equals(GamePadState)

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

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

The GamePadState to compare with the current GamePadState.

Returns
Type Description
System.Boolean

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

Equals(Object)

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

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

The System.Object to compare with the current GamePadState.

Returns
Type Description
System.Boolean

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

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

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

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

A System.String that represents the current GamePadState.

Overrides
System.ValueType.ToString()

Implements

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