enum Glint::Input::Mouse::Button

Overview

Mouse buttons

Defined in:

glint/input/mouse.cr

Enum 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

Instance Method Detail

def back? #

[View source]
def extra? #

[View source]
def forward? #

[View source]
def is_down? : Bool #

Returns whether the Mouse::Button is in the down state.

def is_down? : Bool
  Raylib.key_down? self
end

[View source]
def is_pressed? : Bool #

Returns whether the Mouse::Button is in the pressed state.

def is_pressed? : Bool
  Raylib.key_pressed? self
end

[View source]
def is_released? : Bool #

Returns whether the Mouse::Button is in the released state.

def is_released? : Bool
  Raylib.key_released? self
end

[View source]
def is_up? : Bool #

Returns whether the Mouse::Button is in the up state.

def is_up? : Bool
  Raylib.key_up? self
end

[View source]
def left? #

[View source]
def middle? #

[View source]
def right? #

[View source]
def side? #

[View source]