def primary : InputBinding | Nil
#
class
Opal::Input::Core::InputAction
- Opal::Input::Core::InputAction
- Reference
- Object
Overview
Represents a single logical action (e.g., "move_up", "jump", "ui_accept") and its multi-slot bindings.
Defined in:
opal/input/core/remap_model.crConstructors
Instance Method Summary
- #active_bindings : Array(InputBinding)
- #binding_at(slot : Int32) : InputBinding | Nil
- #bindings : Array(InputBinding | Nil)
- #category : String
- #category=(category : String)
- #clear_all : Bool
- #clear_slot(slot : Int32) : Bool
- #deadzone : Float32
- #deadzone=(deadzone : Float32)
- #default_bindings : Array(InputBinding | Nil)
- #description : String
- #description=(description : String)
- #id : String
- #label : String
- #label=(label : String)
- #locked=(locked : Bool)
- #locked? : Bool
- #matches?(event : Terminal::KeyEvent) : Bool
- #matches?(event : Terminal::MouseEvent) : Bool
- #max_slots : Int32
- #modified? : Bool
- #primary : InputBinding | Nil
- #reset_to_defaults! : Bool
- #search_text : String
- #secondary : InputBinding | Nil
- #set_binding(slot : Int32, binding : InputBinding | Nil, update_default : Bool = false) : Bool
Constructor Detail
def self.new(id : String, label : String | Nil = nil, category : String = "General", description : String = "", deadzone : Float32 = 0.2_f32, locked : Bool = false, max_slots : Int32 = 2, initial_bindings : Array(InputBinding | Nil) | Nil = nil)
#