Module: SDL2::Mouse::BUTTONMASK
- Includes:
- EnumerableConstants
- Defined in:
- lib/sdl2/mouse.rb
Constant Summary collapse
- LEFT =
for_enum(BUTTON::LEFT)
- MIDDLE =
for_enum(BUTTON::MIDDLE)
- RIGHT =
for_enum(BUTTON::RIGHT)
- X1 =
for_enum(BUTTON::X1)
- X2 =
for_enum(BUTTON::X2)
Class Method Summary collapse
Methods included from EnumerableConstants
Class Method Details
.for_enum(button_enum) ⇒ Object
46 47 48 |
# File 'lib/sdl2/mouse.rb', line 46 def self.for_enum 1 << (-1) end |