Skip to content

Enable buttons > 12#2842

Open
DocMoebiuz wants to merge 1 commit intomainfrom
2841/fix-bodnar-board
Open

Enable buttons > 12#2842
DocMoebiuz wants to merge 1 commit intomainfrom
2841/fix-bodnar-board

Conversation

@DocMoebiuz
Copy link
Collaborator

fixes #2841

Copilot AI review requested due to automatic review settings March 18, 2026 08:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes #2841 by updating the Bodnar BU0836A joystick implementation to recognize more than 12 buttons, aligning its configured button count with the device’s expected capability so “Scan for Input” can detect higher button numbers.

Changes:

  • Update BU0836A to initialize the BodnarBoard base class with a button count of 32 (instead of 12).

You can also share your feedback on Copilot code review. Take the survey.

/// <param name="joystick">The DirectInput joystick instance.</param>
/// <param name="definition">Joystick definition file.</param>
public BU0836A(SharpDX.DirectInput.Joystick joystick, JoystickDefinition definition) : base(12, joystick, definition)
public BU0836A(SharpDX.DirectInput.Joystick joystick, JoystickDefinition definition) : base(32, joystick, definition)
@github-actions
Copy link

Build for this pull request:
MobiFlightConnector.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bodnar board doesn't work for buttons > 12

2 participants