aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/input.rs
Commit message (Collapse)AuthorAgeFilesLines
* Only listen for mouse events from master devicesRobert Knight2015-07-221-1/+1
| | | | | | | | | | | | | | XInput2 has a concept of master and slave devices, where a slave device is the actual physical device, attached to a master device representing the cursor or keyboard focus. See http://who-t.blogspot.co.uk/2009/05/xi2-recipes-part-1.html Mouse events were being received from both the master and slave devices, but we are only interested in events from the master device. Fixes #533
* Report focus in/out events under X11Robert Knight2015-06-281-2/+6
| | | | Fixes #377
* X11 - Ignore scroll events that happen outside of Glutin windowsRobert Knight2015-06-281-2/+14
| | | | | | | | | | | Scroll deltas are calculated in X11 by comparing the current and previous absolute values for the scroll axis when a scroll motion event is received. If the user scrolls whilst the cursor is outside of the window then an incorrect delta is reported when the cursor re-enters the window. Fix this by resetting the last-seen axis values whenever the cursor re-enters the window.
* Remove XInput2 code for handling keyboard eventsRobert Knight2015-06-281-54/+29
| | | | | | | * For the moment we're still using plain core X11 events for handling keyboard activity, so remove the XInput2 code for that * Small refactoring of X11 input handling and documentation fixes
* Use XInput2 for event handlingRobert Knight2015-06-281-0/+337
This provides smooth scrolling for touchpad devices and will enable support for touch events etc. in future.