Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
JoyButton
core-defs.swift:1294enum JoyButton
Cases
case invalid
An invalid game controller button.
case a
Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.
case b
Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.
case x
Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.
case y
Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.
case back
Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.
case guide
Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.
case start
Game controller SDL start button. Corresponds to the Sony Options, Xbox Menu, Nintendo + button.
case leftStick
Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.
case rightStick
Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.
case leftShoulder
Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.
case rightShoulder
Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.
case dpadUp
Game controller D-pad up button.
case dpadDown
Game controller D-pad down button.
case dpadLeft
Game controller D-pad left button.
case dpadRight
Game controller D-pad right button.
case misc1
Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo Switch capture button.
case paddle1
Game controller SDL paddle 1 button.
case paddle2
Game controller SDL paddle 2 button.
case paddle3
Game controller SDL paddle 3 button.
case paddle4
Game controller SDL paddle 4 button.
case touchpad
Game controller SDL touchpad button.
case sdlMax
The number of SDL game controller buttons.
case max
The maximum number of game controller buttons supported by the engine. The actual limit may be lower on specific platforms:
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.