snes9x/qt/src/ControllerPanel.hpp
2023-08-25 11:47:29 -05:00

25 lines
630 B
C++

#pragma once
#include "ui_ControllerPanel.h"
#include "BindingPanel.hpp"
#include <QMenu>
class EmuApplication;
class ControllerPanel :
public Ui::ControllerPanel,
public BindingPanel
{
public:
ControllerPanel(EmuApplication *app);
~ControllerPanel();
void showEvent(QShowEvent *event) override;
void clearAllControllers();
void clearCurrentController();
void autoPopulateWithKeyboard(int slot);
void autoPopulateWithJoystick(int joystick_id, int slot);
void swapControllers(int first, int second);
void recreateAutoAssignMenu();
QMenu edit_menu;
QMenu auto_assign_menu;
};