linuxgurugamer / ksp-advanced-flybywire

Controller mod for Kerbal Space Program
MIT License
26 stars 11 forks source link

New Feature: SAS Invert #22

Closed bhaan closed 4 years ago

bhaan commented 4 years ago

This is a feature that I wanted to have for my setup, and thought others might as well.

The idea is that this action can be mapped to a button and, when pressed, will invert or reverse the current SAS setting. For example, if your SAS is currently set to Prograde, this action will toggle the SAS to Retrograde and back again to Prograde.

I find this beneficial, because it will allow me to access the eight directional SAS modes with five button mappings, rather than eight.

Additionally, I noticed that the setSASUI function appears to be unnecessary. With the current KSP API, invoking FlightGlobals.ActiveVessel.Autopilot.SetMode(mode) will highlight the appropriate SAS radial button for you. This may not have always been the case, but I decided to delete that function as it currently seems redundant.

sam0737 commented 4 years ago

I would love to see this merged and a release being made... As the native input doesn't differentiate the buttons from multiple joysticks, AFBW really saves my life. Thank you for @linuxgurugamer reviving the mod and @bhaan for the investigation and code fix

linuxgurugamer commented 4 years ago

I'll be looking at your three PRs this evening