11/19/2023 0 Comments Android disable multi touch![]() ![]() tmp/unity/unity-4.24.0/plugins/unityshell/src/unityshell.cpp: GeisAdapter::Default()->Run() In a command line, enter: sudo apt-get build-dep unityĪt this point, comment out the following 2 lines in the file Here are step by step instructions for patching unity-4.24.0. It turns out that it is not that hard to patch the unity package for totally disabling its handling of multi-touches and gestures. Re-build Unity following domster's instructions again: cd /tmp/unity/unity-6.8.0 ![]() Gestures_sub_windows_->SetWindowId(GDK_ROOT_WINDOW()) Gestures_sub_windows_->SetGestureClasses(nux::TOUCH_GESTURE Gestures_sub_windows_.reset(new nux::GesturesSubscription) Gestures_sub_dash_->SetWindowId(GDK_ROOT_WINDOW()) Gestures_sub_dash_->SetGestureClasses(nux::TAP_GESTURE) Gestures_sub_dash_.reset(new nux::GesturesSubscription) Gestures_sub_launcher_->SetNumTouches(4) Gestures_sub_launcher_->SetGestureClasses(nux::DRAG_GESTURE) ![]() Gestures_sub_launcher_.reset(new nux::GesturesSubscription) Wt->GetWindowCompositor().SetGestureBroker(std::move(gesture_broker)) Std::unique_ptr gesture_broker(new UnityGestureBroker) Then, comment all the lines starting with gesture_sub_launcher to make it look like: void UnityScreen::InitGesturesSupport() The steps to download Unity source code are the same as before (I will copy & paste domster's snippet): sudo apt-get build-dep unityĬd /tmp #It can be done somewhere else, feel free to change the base location.Īt this point, the file to be edited is only /tmp/unity/unity-6.8.0/plugins/unityshell/src/unityshell.cpp.įind the method UnityScreen::InitGesturesSupport() (line 3368 for Unity 6.8.0). Unity source code has obviously changed, so here is how to achieve the same in Unity 6.8.0. An update to domster answer for Ubuntu 12.10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |