mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Use touch events for LogoScreen dismiss.
This commit is contained in:
1 parent
df67497388
commit
1ca40488f2
2 files changed
+10
-1
No files matched your search
+9
-1
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user