ppsspp/Qt/controls.h
Xele02 d5c2560212 Add window to config key bindings
Save the bindings in the conf file in a map.
2013-02-02 17:43:56 +01:00

41 lines
576 B
C++

#ifndef CONTROLS_H
#define CONTROLS_H
#include <QDialog>
#include "native/input/input_state.h"
#include "Core/HLE/sceCtrl.h"
namespace Ui {
class Controls;
}
struct Controls_
{
public:
QString editName;
QString command;
Qt::Key key;
int emu_id;
int psp_id;
};
const int controllistCount = 16;
extern Controls_ controllist[];
class Controls : public QDialog
{
Q_OBJECT
public:
explicit Controls(QWidget *parent = 0);
~Controls();
void showEvent(QShowEvent *);
private slots:
void on_buttonBox_accepted();
private:
Ui::Controls *ui;
};
#endif // CONTROLS_H