class Opal::Input::DSL::InputRemapBuilder

Overview

Tier-2 Declarative Builder wrapping InputRemapModel with Dual-Mode (implicit/explicit receiver) block ergonomics.

Defined in:

opal/input/dsl/remap_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(model : Core::InputRemapModel = Core::InputRemapModel.new) #

[View source]

Instance Method Detail

def action(id : String | Symbol, label : String | Nil = nil, category : String = "General", description : String = "", primary : Core::InputBinding | String | Nil = nil, secondary : Core::InputBinding | String | Nil = nil, deadzone : Float32 | Float64 = 0.2_f32, locked : Bool = false) : Core::InputAction #

[View source]
def action(id : String | Symbol, label : String | Nil = nil, category : String = "General", description : String = "", primary : Core::InputBinding | String | Nil = nil, secondary : Core::InputBinding | String | Nil = nil, deadzone : Float32 | Float64 = 0.2_f32, locked : Bool = false, &) : Core::InputAction #

[View source]
def allow_clear(enabled : Bool = true) : self #

[View source]
def allow_reset(enabled : Bool = true) : self #

[View source]
def bind(id : String | Symbol, primary : Core::InputBinding | String, secondary : Core::InputBinding | String | Nil = nil, category : String = "General", label : String | Nil = nil) : Core::InputAction #

[View source]
def category(name : String, &) : self #

[View source]
def conflict_policy(policy : Core::ConflictPolicy | Symbol | String) : self #

[View source]
def gamepad_style(style : Core::GamepadStyle | Symbol | String) : self #

[View source]
def max_slots(count : Int32) : self #

[View source]
def model : Core::InputRemapModel #

[View source]
def profile_name(name : String) : self #

[View source]