Struct GamePadState
Describes the current state of a GamePad device.
Implements
Inherited Members
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 |
|
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 |
|
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 |
|
Overrides
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
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. |