OoliteProject / oolite

The main Oolite repository.
https://www.oolite.space
554 stars 70 forks source link

joystick handlers interfeer with keyboard flight ctrls? #304

Open cag62 opened 6 years ago

cag62 commented 6 years ago

[pretty obscure = low priority] Flight axis dampening for keyboard flight controls is just delta (of the frame) and so equals their max rate in seconds. In a strict game, a Cobra MkIII has maxPitch & maxYaw == 1, maxRoll == 2 and that's how long it takes the ship to stop rotating once the key is released. A joystick (gamepad stick in my case) has uniform dampening of 1/2 sec for all 3 axes, which is ok as far as it goes. The problem arises when you switch back to using keyboard flight controls: pitch & yaw now dampen in 1/2 instead of the full 1 sec but the roll dampen remains at 2 sec. Here's a short oxp to measure these times: https://www.dropbox.com/s/850yzz54uooi5m4/measureramp.oxz?dl=0

windows10, oolite-trunk-1.87.0.99f1e07-dev.x64

HiranChaudhuri commented 1 year ago

Joystick handling has been reworked via https://github.com/OoliteProject/oolite/pull/403 Would you like to test again and confirm if the problem still persists?