Open
Conversation
added checkbox in planner configs to auto enable joysticks when connected joystick loop checks the auto enable setting and enables the joystick if available joystick setup enable/disable button is greyed out when auto enable is turned on
There was a problem hiding this comment.
Pull request overview
Adds an “Auto Enable Joysticks” planner setting that automatically initializes/enables a joystick when detected, and disables manual enable/disable in the joystick setup UI when the setting is on.
Changes:
- Add auto-enable logic to the joystick send loop to create/enable the joystick when configured and available.
- Add a new planner configuration checkbox to persist the auto-enable setting.
- Disable the joystick setup enable button when auto-enable is enabled.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| MainV2.cs | Adds auto-enable polling/initialization and auto-enable state enforcement in the joystick loop. |
| Joystick/JoystickSetup.cs | Disables the manual enable button based on the new setting. |
| GCSViews/ConfigurationView/ConfigPlanner.resx | Adds the new checkbox control resources and updates Z-order entries. |
| GCSViews/ConfigurationView/ConfigPlanner.cs | Loads/saves the new “Auto Enable Joysticks” checkbox to Settings. |
Files not reviewed (1)
- GCSViews/ConfigurationView/ConfigPlanner.Designer.cs: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| this.Width = ax.Right; | ||
| } | ||
|
|
||
| BUT_enable.Enabled = !Settings.Instance.GetBoolean("CHK_Joystick_AutoEnable"); |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added checkbox in planner configs to auto enable joysticks when connected joystick loop checks the auto enable setting and enables the joystick if available joystick setup enable/disable button is greyed out when auto enable is turned on