struct Eagle::Input::AxisBinding

Overview

A gamepad stick direction used as an action binding. It counts as pressed once the axis, multiplied by sign, passes threshold. Create one with Input.axis(axis, sign).

Defined in:

eagle/input/input.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(axis : GamepadAxis, sign : Int32, threshold : Float32 = 0.5_f32) #

Instance Method Detail

def axis : GamepadAxis #

def clone #

def copy_with(axis _axis = @axis, sign _sign = @sign, threshold _threshold = @threshold) #

def sign : Int32 #

def threshold : Float32 #