Browse Source

Platform: print interesting values in AndroidApplication test.

pull/297/head
Vladimír Vondruš 8 years ago
parent
commit
7dd971daf7
  1. 15
      src/Magnum/Platform/Test/AndroidApplicationTest.cpp

15
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();
}
};
}}}

Loading…
Cancel
Save