From 7dd971daf767ed07b83266c84e3701eff4a0fb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 18 Nov 2018 23:47:09 +0100 Subject: [PATCH] Platform: print interesting values in AndroidApplication test. --- .../Platform/Test/AndroidApplicationTest.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/Test/AndroidApplicationTest.cpp b/src/Magnum/Platform/Test/AndroidApplicationTest.cpp index de68e9a3d..ab9f37dae 100644 --- a/src/Magnum/Platform/Test/AndroidApplicationTest.cpp +++ b/src/Magnum/Platform/Test/AndroidApplicationTest.cpp @@ -28,8 +28,21 @@ namespace Magnum { namespace Platform { namespace Test { struct AndroidApplicationTest: Platform::Application { - explicit AndroidApplicationTest(const Arguments& arguments): Platform::Application{arguments} {} + explicit AndroidApplicationTest(const Arguments& arguments): Platform::Application{arguments} { + Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling(); + } + void drawEvent() override {} + + /* For testing HiDPI resize events */ + void viewportEvent(ViewportEvent& event) override { + Debug{} << "viewport event" << event.windowSize() << event.framebufferSize() << event.dpiScaling(); + } + + /* For testing event coordinates */ + void mousePressEvent(MouseEvent& event) override { + Debug{} << event.position(); + } }; }}}