Use touch events for LogoScreen dismiss.

This commit is contained in:
Unknown W. Brackets committed 2017-03-14 22:07:04 -07:00
1 parent df67497388
commit 1ca40488f2
2 files changed
+10 -1

No files matched your search

+9 -1
View File
@@ -416,7 +416,7 @@ const float logoScreenSeconds = 2.5f;
void LogoScreen::update(InputState &input_state) {
UIScreen::update(input_state);
frames_++;
if (frames_ > 60 * logoScreenSeconds || input_state.pointer_down[0]) {
if (frames_ > 60 * logoScreenSeconds) {
Next();
}
}
@@ -435,6 +435,14 @@ bool LogoScreen::key(const KeyInput &key) {
return false;
}
bool LogoScreen::touch(const TouchInput &touch) {
if (touch.flags & TOUCH_DOWN) {
Next();
return true;
}
return false;
}
void LogoScreen::render() {
using namespace Draw;
+1
View File
@@ -115,6 +115,7 @@ public:
LogoScreen()
: frames_(0), switched_(false) {}
bool key(const KeyInput &key) override;
bool touch(const TouchInput &touch) override;
void update(InputState &input) override;
void render() override;
void sendMessage(const char *message, const char *value) override;