diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-03-15 09:27:45 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-03-15 09:27:45 +0100 |
commit | 303842a19e4893e4ac6784d60aca990b4276d0ec (patch) | |
tree | 6dcaffa82816bfa00e58c9e824be9d69cd2f0102 /application/KonamiCode.h | |
parent | ea151ca9d4124851e96553699cee1c2832c10b8f (diff) | |
download | MultiMC-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.h | 17 |
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; +}; |