Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
MouseButton
core-defs.swift:821enum MouseButton
Cases
case none
Enum value which doesn’t correspond to any mouse button. This is used to initialize
MouseButton
properties with a generic state.case left
Primary mouse button, usually assigned to the left button.
case right
Secondary mouse button, usually assigned to the right button.
case middle
Middle mouse button.
case wheelUp
Mouse wheel scrolling up.
case wheelDown
Mouse wheel scrolling down.
case wheelLeft
Mouse wheel left button (only present on some mice).
case wheelRight
Mouse wheel right button (only present on some mice).
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.