enum

Phosphor::MouseButton

Inherits Enum < Comparable < Value < Object

Which mouse button a MouseEvent involved. Unknown covers both a genuinely unrecognised button code and wheel events, which don't have a button in this sense (the SGR protocol reuses the button-number bits for scroll direction instead).

Constants

Left = 0
Middle = 1
Right = 2
Unknown = 3

Instance methods

left?

Returns true if this enum value equals Left

Source
middle?

Returns true if this enum value equals Middle

Source
right?

Returns true if this enum value equals Right

Source
unknown?

Returns true if this enum value equals Unknown

Source