Kristian Høgsberg
a8873120c4
compositor: The compositor is now jiust a regular global object
...
We have to provide our own bind callback and add a wlsc_compositor pointer
to wlsc_input_device, but on the whole it's nice cleanup.
13 years ago
Kristian Høgsberg
db0fa54b5a
Simplify evdev_flush_motion() a tiny bit
13 years ago
Tiago Vignatti
f547bd36e6
evdev: fetch absolute coordinates inside flush_motion only
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
5c900ce08d
evdev: remove useless field from device structure
...
We'll want to enhance later the driver regarding the tool being used, but for
now just remove unused bits.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
80885e16b3
evdev: reset accumulator inside evdev_flush_motion
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
a52b2e4b20
evdev: use a separate structure to denote accumulated motion events
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
a157fc11a9
evdev: use a separate struct for abs information
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
8b568806aa
evdev: Reset accumulate values when we flush motion events
...
Otherwise we end up reporting all motion events twice.
13 years ago
Tiago Vignatti
52e158d46b
evdev: fix order of events being sent to the compositor
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
8755ff9de7
evdev: remove signed value checks
...
Very likely that 2.4 kernels won't be used with Wayland compositor so the
check for signal value is pretty much useless.
It's okay to change e->value inside evdev_process_absolute_motion_touchpad
given it's not used later on, and I also rather not touch this snip because it
will be changed when multi-touch support arrives.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
ac9cfd3065
evdev: Simplify error path for device creation
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
d9f7d1f0c5
evdev: Delete unused fields from evdev_input_device
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
ac2dc6aafe
evdev: Add hotplug support
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
e7b5b41e93
evdev: Associate touchscreen devices with output up front
...
This isn't going to change over time, so just tracking it in the
evdev device is a little easier. Also, we need to adjust for the
output position when transforming the device events to screen space.
13 years ago
Tiago Vignatti
d904359949
evdev: treat BTN_TOUCH as BTN_LEFT
...
idea stolen from xorg evdev.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
bbc2e03b2a
evdev: use last output from compositor to get the screen geometries
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
8be003baba
evdev: organize the code for processing events
...
Nothing was touched, just code moved around.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
c0827fd9d6
evdev: opt out accelerometer type of devices
...
We may want to adjust the protocol later for clients that care for
these devices only, generating a special event.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
d9c8250955
evdev: use a separate function for configuring devices
...
No semantical changes.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Matt Peterson
63900ec374
Relative movement with a touchpad and other misc fixes for events
14 years ago
Kristian Høgsberg
1d26603633
evdev: Only add event devices
14 years ago
Kristian Høgsberg
86ec8e80d8
compositor: Use systemd seats for input devices as well
14 years ago
Kristian Høgsberg
b1868479ad
Update return types of event handler functions
...
Missed this in previous commit.
14 years ago
Kristian Høgsberg
96c8be98a6
Some kind of support for touchscreen
14 years ago
Kristian Høgsberg
43db4015f9
Split out evdev handling to its own file
14 years ago