module

GSDL::Input

Class methods

[](name : Symbol) : Bool

Shorthand for action?

Source
action?(name : Symbol) : Bool

Check if an action is currently active Example: if GSDL::Input.action?(:jump)

Source
append_text_input(text : String)
Source
clear

Clear all actions

Source
clear_text_input
Source
delete(name : Symbol)

Remove a specific action

Source
multi_tap_time_window
Source
multi_tap_time_window=(val : UInt64)
Source
set(name : Symbol, &block : -> Bool)

Define an action with a block that returns a Bool Example: GSDL::Input.set(:jump) { GSDL::Keys.just_pressed?(GSDL::Keys::Space) }

Source
start_text_input
Source
stop_text_input
Source
text_input_active?
Source
text_input_this_frame
Source

Nested types