summaryrefslogtreecommitdiffstats
path: root/application/KonamiCode.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-03-15 09:27:45 +0100
committerPetr Mrázek <peterix@gmail.com>2018-03-15 09:27:45 +0100
commit303842a19e4893e4ac6784d60aca990b4276d0ec (patch)
tree6dcaffa82816bfa00e58c9e824be9d69cd2f0102 /application/KonamiCode.h
parentea151ca9d4124851e96553699cee1c2832c10b8f (diff)
downloadMultiMC-303842a19e4893e4ac6784d60aca990b4276d0ec.tar
MultiMC-303842a19e4893e4ac6784d60aca990b4276d0ec.tar.gz
MultiMC-303842a19e4893e4ac6784d60aca990b4276d0ec.tar.lz
MultiMC-303842a19e4893e4ac6784d60aca990b4276d0ec.tar.xz
MultiMC-303842a19e4893e4ac6784d60aca990b4276d0ec.zip
NOISSUE Add Konami Code
Fun little thing for hiding extra debug options in the future.
Diffstat (limited to 'application/KonamiCode.h')
-rw-r--r--application/KonamiCode.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/application/KonamiCode.h b/application/KonamiCode.h
new file mode 100644
index 00000000..ad17f8be
--- /dev/null
+++ b/application/KonamiCode.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <QKeyEvent>
+
+class KonamiCode : public QObject
+{
+ Q_OBJECT
+public:
+ KonamiCode(QObject *parent = 0);
+ void input(QEvent *event);
+
+signals:
+ void triggered();
+
+private:
+ int m_progress = 0;
+};