enum Glint::Input::Controller::Button

Defined in:

glint/input/controller.cr

Enum Members

Unknown = 0

The Unknown Controller::Button.

Unknown = Raylib::GamepadButton::Unknown
LeftFaceUp = 1

The LeftFaceUp Controller::Button.

LeftFaceUp = Raylib::GamepadButton::LeftFaceUp
LeftFaceRight = 2

The LeftFaceRight Controller::Button.

LeftFaceRight = Raylib::GamepadButton::LeftFaceRight
LeftFaceDown = 3

The LeftFaceDown Controller::Button.

LeftFaceDown = Raylib::GamepadButton::LeftFaceDown
LeftFaceLeft = 4

The LeftFaceLeft Controller::Button.

LeftFaceLeft = Raylib::GamepadButton::LeftFaceLeft
RightFaceUp = 5

The RightFaceUp Controller::Button.

RightFaceUp = Raylib::GamepadButton::RightFaceUp
RightFaceRight = 6

The RightFaceRight Controller::Button.

RightFaceRight = Raylib::GamepadButton::RightFaceRight
RightFaceDown = 7

The RightFaceDown Controller::Button.

RightFaceDown = Raylib::GamepadButton::RightFaceDown
RightFaceLeft = 8

The RightFaceLeft Controller::Button.

RightFaceLeft = Raylib::GamepadButton::RightFaceLeft
LeftTrigger1 = 9

The LeftTrigger1 Controller::Button.

LeftTrigger1 = Raylib::GamepadButton::LeftTrigger1
LeftTrigger2 = 10

The LeftTrigger2 Controller::Button.

LeftTrigger2 = Raylib::GamepadButton::LeftTrigger2
RightTrigger1 = 11

The RightTrigger1 Controller::Button.

RightTrigger1 = Raylib::GamepadButton::RightTrigger1
RightTrigger2 = 12

The RightTrigger2 Controller::Button.

RightTrigger2 = Raylib::GamepadButton::RightTrigger2
MiddleLeft = 13

The MiddleLeft Controller::Button.

MiddleLeft = Raylib::GamepadButton::MiddleLeft
Middle = 14

The Middle Controller::Button.

Middle = Raylib::GamepadButton::Middle
MiddleRight = 15

The MiddleRight Controller::Button.

MiddleRight = Raylib::GamepadButton::MiddleRight
LeftThumb = 16

The LeftThumb Controller::Button.

LeftThumb = Raylib::GamepadButton::LeftThumb
RightThumb = 17

The RightThumb Controller::Button.

RightThumb = Raylib::GamepadButton::RightThumb

Instance Method Summary

Instance Method Detail

def is_down?(gamepad) : Bool #

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

def is_down?(gamepad) : Bool
  Raylib.gamepage_button_down? gamepad, self
end

[View source]
def is_pressed?(gamepad) : Bool #

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

def is_pressed?(gamepad) : Bool
  Raylib.gamepage_button_pressed? gamepad, self
end

[View source]
def is_released?(gamepad) : Bool #

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

def is_released?(gamepad) : Bool
  Raylib.gamepage_button_released? gamepad, self
end

[View source]
def is_up?(gamepad) : Bool #

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

def is_up?(gamepad) : Bool
  Raylib.gamepage_button_up? gamepad, self
end

[View source]
def left_face_down? #

[View source]
def left_face_left? #

[View source]
def left_face_right? #

[View source]
def left_face_up? #

[View source]
def left_thumb? #

[View source]
def left_trigger1? #

[View source]
def left_trigger2? #

[View source]
def middle? #

[View source]
def middle_left? #

[View source]
def middle_right? #

[View source]
def right_face_down? #

[View source]
def right_face_left? #

[View source]
def right_face_right? #

[View source]
def right_face_up? #

[View source]
def right_thumb? #

[View source]
def right_trigger1? #

[View source]
def right_trigger2? #

[View source]
def unknown? #

[View source]