public GamepadComponent_Stick(GamepadStickId i, InputAtomLockType l) : base(i, l) { value = VectorF2.ZERO; magnitude = 0.0f; angle_in_degrees = 0.0f; frozen_value = VectorF2.ZERO; frozen_magnitude = 0.0f; frozen_angle_in_degrees = 0.0f; stick_zones = new GamepadEventLog <GamepadStickZone>(64); }
protected GamepadComponent_Stick CreateStick(GamepadStickId id, InputAtomLockType lock_type = InputAtomLockType.Zeroed) { return(RegisterStick(new GamepadComponent_Stick(id, lock_type))); }
public GamepadComponent_Stick GetStick(GamepadStickId id) { return(sticks.GetValue(id)); }