pioneerspacesim/pioneer — pull request #1866 by johnbartholomew (2012-12-22 20:03:56+00:00)
Title: Cleanup rotation damping code

This cleans up after the mess left by #1842. Also adds rotation damping state to the serialisation format.

I don't really like adding signals for tiny little things like this, but it was the only way I could find to decouple PlayerShipController from ShipCpanel. The alternatives were to let PlayerShipController directly kick `Pi::cpan` when the rotation damping state is changed (bad coupling), or make ShipCpanel handle the rotation damping KeyBinding (bad because if some other piece of code comes in and wants to set the rotation damping state it either has to go through ShipCpanel, or remember to kick both the controller and the cpanel).