Fix a doxygen reference
[platform/upstream/libinput.git] / src / evdev.h
index 4a83a78..f1ccdc2 100644 (file)
@@ -67,8 +67,9 @@ struct evdev_device {
        int fd;
        struct {
                const struct input_absinfo *absinfo_x, *absinfo_y;
-               int32_t x, y;
+               int fake_resolution;
 
+               int32_t x, y;
                int32_t seat_slot;
 
                int apply_calibration;
@@ -94,6 +95,13 @@ struct evdev_device {
        struct {
                struct motion_filter *filter;
        } pointer;
+
+       /* Bitmask of pressed keys used to ignore initial release events from
+        * the kernel. */
+       unsigned long key_mask[NLONGS(KEY_CNT)];
+       /* Key counter used for multiplexing button events internally in
+        * libinput. */
+       uint8_t key_count[KEY_CNT];
 };
 
 #define EVDEV_UNHANDLED_DEVICE ((struct evdev_device *) 1)
@@ -141,6 +149,15 @@ evdev_device_get_output(struct evdev_device *device);
 const char *
 evdev_device_get_sysname(struct evdev_device *device);
 
+const char *
+evdev_device_get_name(struct evdev_device *device);
+
+unsigned int
+evdev_device_get_id_product(struct evdev_device *device);
+
+unsigned int
+evdev_device_get_id_vendor(struct evdev_device *device);
+
 void
 evdev_device_calibrate(struct evdev_device *device, float calibration[6]);
 
@@ -164,6 +181,18 @@ evdev_device_transform_y(struct evdev_device *device,
                         uint32_t height);
 
 void
+evdev_keyboard_notify_key(struct evdev_device *device,
+                         uint32_t time,
+                         int key,
+                         enum libinput_key_state state);
+
+void
+evdev_pointer_notify_button(struct evdev_device *device,
+                           uint32_t time,
+                           int button,
+                           enum libinput_button_state state);
+
+void
 evdev_device_remove(struct evdev_device *device);
 
 void