Struct GamePadButtons
Describes the ButtonState of GamePad Buttons.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: cs.temp.dll.dll
Syntax
public struct GamePadButtons : IEquatable<GamePadButtons>
Constructors
GamePadButtons(Buttons)
Initializes a new instance of the GamePadButtons structure.
Declaration
public GamePadButtons(Buttons state)
Parameters
Type | Name | Description |
---|---|---|
Buttons | state | A bitmask containing the button state. |
Properties
A
Gets the ButtonState for the A button.
Declaration
public ButtonState A { get; }
Property Value
Type | Description |
---|---|
ButtonState |
B
Gets the ButtonState for the B button.
Declaration
public ButtonState B { get; }
Property Value
Type | Description |
---|---|
ButtonState |
Back
Gets the ButtonState for the Back button.
Declaration
public ButtonState Back { get; }
Property Value
Type | Description |
---|---|
ButtonState |
BigButton
Gets the ButtonState for the big button. This button is also known as Home or Guide.
Declaration
public ButtonState BigButton { get; }
Property Value
Type | Description |
---|---|
ButtonState |
IsAnyButtonPressed
Gets a value indicating whether any button is pressed.
Declaration
public bool IsAnyButtonPressed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LeftShoulder
Gets the ButtonState for the left shoulder button.
Declaration
public ButtonState LeftShoulder { get; }
Property Value
Type | Description |
---|---|
ButtonState |
LeftStick
Gets the ButtonState for the left stick button. This button represents a left stick that is pressed in.
Declaration
public ButtonState LeftStick { get; }
Property Value
Type | Description |
---|---|
ButtonState |
RightShoulder
Gets the ButtonState for the right shoulder button.
Declaration
public ButtonState RightShoulder { get; }
Property Value
Type | Description |
---|---|
ButtonState |
RightStick
Gets the ButtonState for the right stick button. This button represents a right stick that is pressed in.
Declaration
public ButtonState RightStick { get; }
Property Value
Type | Description |
---|---|
ButtonState |
Start
Gets the ButtonState for the starth button.
Declaration
public ButtonState Start { get; }
Property Value
Type | Description |
---|---|
ButtonState |
X
Gets the ButtonState for the X button.
Declaration
public ButtonState X { get; }
Property Value
Type | Description |
---|---|
ButtonState |
Y
Gets the ButtonState for the Y button.
Declaration
public ButtonState Y { get; }
Property Value
Type | Description |
---|---|
ButtonState |
Methods
Equals(GamePadButtons)
Determines whether the specified GamePadButtons is equal to the current GamePadButtons.
Declaration
public bool Equals(GamePadButtons other)
Parameters
Type | Name | Description |
---|---|---|
GamePadButtons | other | The GamePadButtons to compare with the current GamePadButtons. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Determines whether the specified System.Object is equal to the current GamePadButtons.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current GamePadButtons. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a GamePadButtons 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 GamePadButtons.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current GamePadButtons. |
Overrides
Operators
Equality(GamePadButtons, GamePadButtons)
Declaration
public static bool operator ==(GamePadButtons left, GamePadButtons right)
Parameters
Type | Name | Description |
---|---|---|
GamePadButtons | left | A GamePadButtons instance to test for equality. |
GamePadButtons | right | A GamePadButtons instance to test for equality. |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(GamePadButtons, GamePadButtons)
Declaration
public static bool operator !=(GamePadButtons left, GamePadButtons right)
Parameters
Type | Name | Description |
---|---|---|
GamePadButtons | left | A GamePadButtons instance to test for inequality. |
GamePadButtons | right | A GamePadButtons instance to test for inequality. |
Returns
Type | Description |
---|---|
System.Boolean |