MultiMC5/application/KonamiCode.h

18 lines
230 B
C
Raw Normal View History

#pragma once
#include <QKeyEvent>
class KonamiCode : public QObject
{
2018-07-15 12:51:05 +00:00
Q_OBJECT
public:
2018-07-15 12:51:05 +00:00
KonamiCode(QObject *parent = 0);
void input(QEvent *event);
signals:
2018-07-15 12:51:05 +00:00
void triggered();
private:
2018-07-15 12:51:05 +00:00
int m_progress = 0;
};