Kristian Høgsberg
db0fa54b5a
Simplify evdev_flush_motion() a tiny bit
2011-11-22 19:24:25 -05:00
Tiago Vignatti
f547bd36e6
evdev: fetch absolute coordinates inside flush_motion only
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-11-22 12:05:22 +02:00
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>
2011-11-21 23:47:26 +02:00
Tiago Vignatti
80885e16b3
evdev: reset accumulator inside evdev_flush_motion
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-11-21 23:45:30 +02:00
Tiago Vignatti
a52b2e4b20
evdev: use a separate structure to denote accumulated motion events
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-11-21 23:45:05 +02:00
Tiago Vignatti
a157fc11a9
evdev: use a separate struct for abs information
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-11-21 23:42:33 +02:00
Kristian Høgsberg
8b568806aa
evdev: Reset accumulate values when we flush motion events
...
Otherwise we end up reporting all motion events twice.
2011-11-18 10:42:34 -05:00
Tiago Vignatti
52e158d46b
evdev: fix order of events being sent to the compositor
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-11-18 15:00:34 +02:00
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>
2011-11-18 13:44:17 +02:00
Tiago Vignatti
ac9cfd3065
evdev: Simplify error path for device creation
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-10-28 13:15:25 -04:00
Tiago Vignatti
d9f7d1f0c5
evdev: Delete unused fields from evdev_input_device
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-10-28 13:09:42 -04:00
Tiago Vignatti
ac2dc6aafe
evdev: Add hotplug support
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-10-28 13:05:06 -04:00
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.
2011-09-01 17:18:48 -04:00
Tiago Vignatti
d904359949
evdev: treat BTN_TOUCH as BTN_LEFT
...
idea stolen from xorg evdev.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-09-01 17:18:07 -04:00
Tiago Vignatti
bbc2e03b2a
evdev: use last output from compositor to get the screen geometries
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-09-01 12:32:29 -04:00
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>
2011-09-01 12:30:48 -04:00
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>
2011-08-19 10:55:33 -04:00
Tiago Vignatti
d9c8250955
evdev: use a separate function for configuring devices
...
No semantical changes.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-08-19 10:55:33 -04:00
Matt Peterson
63900ec374
Relative movement with a touchpad and other misc fixes for events
2011-08-12 10:20:36 -04:00
Kristian Høgsberg
1d26603633
evdev: Only add event devices
2011-07-21 08:42:58 -07:00
Kristian Høgsberg
86ec8e80d8
compositor: Use systemd seats for input devices as well
2011-07-19 16:10:11 -07:00
Kristian Høgsberg
b1868479ad
Update return types of event handler functions
...
Missed this in previous commit.
2011-04-22 12:27:57 -04:00
Kristian Høgsberg
96c8be98a6
Some kind of support for touchscreen
2011-01-14 14:49:46 -05:00
Kristian Høgsberg
43db4015f9
Split out evdev handling to its own file
2011-01-14 14:45:42 -05:00