Jump to content

Navball Markers key bindings, is it possible?


Stocchinet

Recommended Posts

I don't know if it's been addressed before, i would like to assign key bindings to the sas markers (prograde, retrograde, radial etc...) of the nav ball, i looked into the game settings but i haven't found anything useful, i'm planning to build a custom controller so i want to stay as mouse-free as possible, i know that it's possible with some arduino wizardry, but for my progect i will use a simple HID board, so, is there a mod for it?

Edited by Stocchinet
wrong words on the title
Link to comment
Share on other sites

I don't believe so but such a mod would be very very simple to make

[KSPAddon(KSPAddon.Startup.Flight, false]
AClass : MonoBehaviour
{
    Update()
    {
      	// repeat this for each autopilot mode
     	if (Input.GetKeyDown(KeyCode)) // replace KeyCode with appropriate key
        	FlightGlobals.ActiveVessel.Autopilot.SetMode(mode) // replace mode with appropriate mode
    }
}

 

Edited by Crzyrndm
Link to comment
Share on other sites

4 hours ago, Crzyrndm said:

I don't believe so but such a mod would be very very simple to make


[KSPAddon(KSPAddon.Startup.Flight, false]
AClass : MonoBehaviour
{
    Update()
    {
      	// repeat this for each autopilot mode
     	if (Input.GetKeyDown(KeyCode)) // replace KeyCode with appropriate key
        	FlightGlobals.ActiveVessel.Autopilot.SetMode(mode) // replace mode with appropriate mode
    }
}

 

Thanks, unfortunately i don't know nothing about modding, is that a module manager config? how do i use it? I would be very grateful if you can give me any kind of help, i'll search for some tutorials too

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...