enum Glint::Input::Mouse::Button
Overview
Mouse buttons
Defined in:
glint/input/mouse.crEnum Members
-
Left =
0
-
The left
Mouse::Button
.Left = Raylib::MouseButton::Left
-
Right =
1
-
The right
Mouse::Button
.Right = Raylib::MouseButton::Right
-
Middle =
2
-
The middle
Mouse::Button
.Middle = Raylib::MouseButton::Middle
-
Side =
3
-
The side
Mouse::Button
.Side = Raylib::MouseButton::Side
-
Extra =
4
-
The extra
Mouse::Button
.Extra = Raylib::MouseButton::Extra
-
Forward =
5
-
The forward
Mouse::Button
.Forward = Raylib::MouseButton::Forward
-
Back =
6
-
The back
Mouse::Button
.Back = Raylib::MouseButton::Back
Instance Method Summary
- #back?
- #extra?
- #forward?
-
#is_down? : Bool
Returns whether the
Mouse::Button
is in the down state. -
#is_pressed? : Bool
Returns whether the
Mouse::Button
is in the pressed state. -
#is_released? : Bool
Returns whether the
Mouse::Button
is in the released state. -
#is_up? : Bool
Returns whether the
Mouse::Button
is in the up state. - #left?
- #middle?
- #right?
- #side?
Instance Method Detail
def is_down? : Bool
#
Returns whether the Mouse::Button
is in the down state.
def is_down? : Bool
Raylib.key_down? self
end
def is_pressed? : Bool
#
Returns whether the Mouse::Button
is in the pressed state.
def is_pressed? : Bool
Raylib.key_pressed? self
end
def is_released? : Bool
#
Returns whether the Mouse::Button
is in the released state.
def is_released? : Bool
Raylib.key_released? self
end
def is_up? : Bool
#
Returns whether the Mouse::Button
is in the up state.
def is_up? : Bool
Raylib.key_up? self
end