class
Opal::Input::Gamepad::FocusMapper
- Opal::Input::Gamepad::FocusMapper
- Reference
- Object
Overview
Translates gamepad events into standard UI focus traversal, activation, and viewport scrolling actions.
Defined in:
opal/gamepad/focus_mapper.crInstance Method Summary
- #enabled=(enabled : Bool)
- #enabled? : Bool
-
#handle(event : Event) : Nil
Dispatches a gamepad event through the mapper
- #hook(btn : Button, &block : -> Nil) : self
- #on_activate(&block : -> Nil) : self
- #on_cancel(&block : -> Nil) : self
- #on_next_focus(&block : -> Nil) : self
- #on_next_slide(&block : -> Nil) : self
- #on_prev_focus(&block : -> Nil) : self
- #on_prev_slide(&block : -> Nil) : self
- #on_scroll(&block : Float64 -> Nil) : self