Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
mobile/app/x11.go: Support mouse events for X #20625
What version of Go are you using (
The received Xlib mouse events are converted to mouse.Events The original touch.Event usage is dropped, it should be used when touch(screen) is supported to prevent confusion. Applicaiton can easily convert mouse events into touch event if they desire, as shown by the shiny (Windows) example application. Fixes golang/go#20625 Change-Id: I9e76b40bbe25015fb163ba3d51b39a1f5cd17f54
Probably dup of #20593.
From reading the code, it seems to me that the intent for the "desktop" behaviour of a mobile/app program to be an emulator for the mobile behaviour. If that's true, converting from mouse events to touch events seems appropriate.
While mobile/app is mobile-centric, shiny is desktop-centric (and doesn't even run on mobiles). Somehow merging the two was probably the goal before work stalled.