class Opal::Input::Gamepad::FocusMapper

Overview

Translates gamepad events into standard UI focus traversal, activation, and viewport scrolling actions.

Defined in:

opal/gamepad/focus_mapper.cr

Instance Method Summary

Instance Method Detail

def enabled=(enabled : Bool) #

[View source]
def enabled? : Bool #

[View source]
def handle(event : Event) : Nil #

Dispatches a gamepad event through the mapper


[View source]
def hook(btn : Button, &block : -> Nil) : self #

[View source]
def on_activate(&block : -> Nil) : self #

[View source]
def on_cancel(&block : -> Nil) : self #

[View source]
def on_next_focus(&block : -> Nil) : self #

[View source]
def on_next_slide(&block : -> Nil) : self #

[View source]
def on_prev_focus(&block : -> Nil) : self #

[View source]
def on_prev_slide(&block : -> Nil) : self #

[View source]
def on_scroll(&block : Float64 -> Nil) : self #

[View source]