MouseButton
core-defs.swift:1224enum MouseButtonenum MouseButtonimport SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
case noneEnum value which doesn’t correspond to any mouse button. This is used to initialize MouseButton properties with a generic state.
case leftPrimary mouse button, usually assigned to the left button.
case rightSecondary mouse button, usually assigned to the right button.
case middleMiddle mouse button.
case wheelUpMouse wheel scrolling up.
case wheelDownMouse wheel scrolling down.
case wheelLeftMouse wheel left button (only present on some mice).
case wheelRightMouse wheel right button (only present on some mice).
case xbutton1Extra mouse button 1. This is sometimes present, usually to the sides of the mouse.
case xbutton2Extra mouse button 2. This is sometimes present, usually to the sides of the mouse.
protocol CaseIterableA type that provides a collection of all of its values.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA 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.
init?(rawValue: Int64) var debugDescription: String { get }A textual representation of this instance, suitable for debugging
var hashValue: Int { get }static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)