Jump to content

Edit user control settings (joystick axes)


Recommended Posts

Hi, I want to make a simple plugin that applies the precision control toggle to joystick input, since I tend to over-steer horribly. :wink:

As a starting point, I would like to dynamically edit the "scale" parameter for joystick axes, which is defined in the settings.cfg file:

AXIS_PITCH{
name = Mad Catz F.L.Y.5 Stick Axis 1
id = joy0.1
inv = False
sensitivity = 2
deadzone = 0.025
[B]scale = 1[/B]
group = 0
switchState = Any
}

How would I go about changing it in-game? I just need a nudge in the right direction, this will be my first plugin written for KSP. :blush:

I know C#, the problem is finding a suitable API to use, specifically.

Link to comment
Share on other sites

I'd start by trying to modify the AxisBindings in GameSettings, specifically AXIS_PITCH, AXIS_ROLL, AXIS_YAW, maybe the AXIS_TRANSLATE_*'s, and the axis_Docking_*'s. It's probably that simple. If it's not, the next place I'd be looking is inside the Input class.

Good luck

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...