local function p(p)local f=Gamepad:GetPosition(THUMBSTICK_1)local s=Gamepad:IsDown(BUTTON_RT)engine.BoostInput=UpdateBoost(s,p)and 1 or 0 engine.YawInput=ApplyDeadzone(f.X)engine.PitchInput=ApplyDeadzone(f.Y)end

local function GetGamepadInput(step)
	-- Get gamepad inputs
	local thumbstick1 = Gamepad:GetPosition(THUMBSTICK_1)
	local rt = Gamepad:IsDown(BUTTON_RT)
	
	-- Update control inputs
	engine.BoostInput = ((UpdateBoost(rt, step) and 1) or 0)
	engine.YawInput = ApplyDeadzone(thumbstick1.X)
	engine.PitchInput = ApplyDeadzone(thumbstick1.Y)
end -- GetGamepadInput()
