Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Dec 26, 2024
1 parent 15c8ccb commit 7a43e51
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 251 deletions.
28 changes: 27 additions & 1 deletion UI/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,7 @@ private bool UpdateStatusBarModuleInformation()
bool modulesFound = false;
ModuleStatusIconToolStripLabel.Image = Properties.Resources.warning;
moduleToolStripDropDownButton.DropDownItems.Clear();
JoystickToolStripDropDownButton.DropDownItems.Clear();
moduleToolStripDropDownButton.ToolTipText = i18n._tr("uiMessageNoModuleFound");
#if ARCAZE
// TODO: refactor!!!
Expand All @@ -1179,6 +1180,12 @@ private bool UpdateStatusBarModuleInformation()
modulesFound = true;
}
#endif
foreach (var joystick in execManager.GetJoystickManager().GetJoysticks())
{
var item = new ToolStripMenuItem(joystick.Name);
JoystickToolStripDropDownButton.DropDownItems.Add(item);
}

if (modulesFound)
{
moduleToolStripDropDownButton.ToolTipText = i18n._tr("uiMessageModuleFound");
Expand Down
Loading

0 comments on commit 7a43e51

Please sign in to comment.