enum Glint::Input::Controller::Button
Defined in:
glint/input/controller.crEnum 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
-
#is_down?(gamepad) : Bool
Returns whether the
Controller::Button
is in the down state. -
#is_pressed?(gamepad) : Bool
Returns whether the
Controller::Button
is in the pressed state. -
#is_released?(gamepad) : Bool
Returns whether the
Controller::Button
is in the released state. -
#is_up?(gamepad) : Bool
Returns whether the
Controller::Button
is in the up state. - #left_face_down?
- #left_face_left?
- #left_face_right?
- #left_face_up?
- #left_thumb?
- #left_trigger1?
- #left_trigger2?
- #middle?
- #middle_left?
- #middle_right?
- #right_face_down?
- #right_face_left?
- #right_face_right?
- #right_face_up?
- #right_thumb?
- #right_trigger1?
- #right_trigger2?
- #unknown?
Instance Method Detail
Returns whether the Controller::Button
is in the down state.
def is_down?(gamepad) : Bool
Raylib.gamepage_button_down? gamepad, self
end
Returns whether the Controller::Button
is in the pressed state.
def is_pressed?(gamepad) : Bool
Raylib.gamepage_button_pressed? gamepad, self
end
Returns whether the Controller::Button
is in the released state.
def is_released?(gamepad) : Bool
Raylib.gamepage_button_released? gamepad, self
end
Returns whether the Controller::Button
is in the up state.
def is_up?(gamepad) : Bool
Raylib.gamepage_button_up? gamepad, self
end