diff --git a/entities/plane.lua b/entities/plane.lua index 51ae594..68fffd6 100644 --- a/entities/plane.lua +++ b/entities/plane.lua @@ -464,9 +464,8 @@ Plane = Class{ self.turningCcw = isTurning end; - analog = function(self, controlX, controlY, throttleX, throttleY, fire, brake) + analog = function(self, controlY, throttleX, throttleY, fire, brake) if self.health > 0 then - self.controlX = controlX self.controlY = controlY self.throttleX = throttleX self.throttleY = -throttleY diff --git a/level_state.lua b/level_state.lua index a3498ee..dd936fe 100644 --- a/level_state.lua +++ b/level_state.lua @@ -116,7 +116,7 @@ function level_state:update(dt) local x1, y1, x2, y2 = j:getAxes() if #buttons >= 8 and y2 ~= nil then -- button mapping suitable for XBox original controller - players[player]:joystick(x2, y2, x1, y1, buttons[8], buttons[7]) + players[player]:joystick(y2 - x2, x1, y1, buttons[8], buttons[7]) end end end