Skip to content

Commit

Permalink
USB: Gametrak/RealPlay emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin9doi authored and F0bes committed Jul 27, 2024
1 parent 2fa85c5 commit 2bff357
Show file tree
Hide file tree
Showing 14 changed files with 2,048 additions and 4 deletions.
12 changes: 12 additions & 0 deletions pcsx2-qt/Settings/ControllerBindingWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
#include "SettingWidgetBinder.h"

#include "ui_USBBindingWidget_DrivingForce.h"
#include "ui_USBBindingWidget_Gametrak.h"
#include "ui_USBBindingWidget_GTForce.h"
#include "ui_USBBindingWidget_GunCon2.h"
#include "ui_USBBindingWidget_RealPlay.h"

ControllerBindingWidget::ControllerBindingWidget(QWidget* parent, ControllerSettingsWindow* dialog, u32 port)
: QWidget(parent)
Expand Down Expand Up @@ -1322,11 +1324,21 @@ USBBindingWidget* USBBindingWidget::createInstance(
has_template = true;
}
}
else if (type == "Gametrak")
{
Ui::USBBindingWidget_Gametrak().setupUi(widget);
has_template = true;
}
else if (type == "guncon2")
{
Ui::USBBindingWidget_GunCon2().setupUi(widget);
has_template = true;
}
else if (type == "RealPlay")
{
Ui::USBBindingWidget_RealPlay().setupUi(widget);
has_template = true;
}

if (has_template)
widget->bindWidgets(bindings);
Expand Down
Loading

0 comments on commit 2bff357

Please sign in to comment.