From 088530c8b03c6b1332796a7f8dc3d78c547f0944 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Thu, 7 Jul 2016 17:19:53 +0200 Subject: [PATCH] Disable mouse buttons for now If we keep them enabled Android will take the input device as a keyboard which will actively block the virtual keyboard to come up. --- src/anbox/ubuntu/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/anbox/ubuntu/window.cpp b/src/anbox/ubuntu/window.cpp index 563be9b..fabfa99 100644 --- a/src/anbox/ubuntu/window.cpp +++ b/src/anbox/ubuntu/window.cpp @@ -137,10 +137,12 @@ Window::Window(const std::shared_ptr &display, pointer_->set_driver_version(1); pointer_->set_input_id({ BUS_VIRTUAL, 1, 1, 1 }); pointer_->set_physical_location("none"); +#if 0 pointer_->set_key_bit(BTN_MOUSE); pointer_->set_key_bit(BTN_LEFT); pointer_->set_key_bit(BTN_MIDDLE); pointer_->set_key_bit(BTN_RIGHT); +#endif pointer_->set_rel_bit(REL_X); pointer_->set_rel_bit(REL_Y); pointer_->set_rel_bit(REL_HWHEEL);