struct
Rosegold::ManualControl::Input
- Rosegold::ManualControl::Input
- Struct
- Value
- Object
Overview
One normalized controller frame. Held flags replace earlier ones; taps and look deltas accumulate until the next tick consumes them.
Defined in:
rosegold/control/manual_control.crConstructors
Class Method Summary
Instance Method Summary
- #attack? : Bool
- #attack_taps : Int32
- #backward? : Bool
- #forward? : Bool
-
#hotbar : UInt8 | Nil
Hotbar slot 1 through 9.
-
#ice_road_toggle? : Bool
One-shot request to flip the ice-road state.
- #jump? : Bool
-
#jump_tap? : Bool
One-tick jump press that
#without_one_shotsdrops. - #left? : Bool
-
#merge(newer : Input) : Input
Combines this unconsumed frame with a newer one.
- #pitch_delta : Float32
- #right? : Bool
- #sneak? : Bool
- #sprint? : Bool
- #use? : Bool
- #use_taps : Int32
- #without_one_shots : Input
- #yaw_delta : Float32
Constructor Detail
def self.new(forward : Bool = false, backward : Bool = false, left : Bool = false, right : Bool = false, jump : Bool = false, sneak : Bool = false, sprint : Bool = false, jump_tap : Bool = false, ice_road_toggle : Bool = false, attack : Bool = false, use : Bool = false, attack_taps : Int32 = 0, use_taps : Int32 = 0, yaw_delta : Float32 = 0_f32, pitch_delta : Float32 = 0_f32, hotbar : UInt8 | Nil = nil)
#