struct normalized_coords accel, unaccel;
struct device_float_coords raw;
+<<<<<<< HEAD
TRACE_BEGIN(fallback_flush_relative_motion);
if (!(device->seat_caps & EVDEV_DEVICE_POINTER)) {
/* Use unaccelerated deltas for pointing stick scroll */
if (evdev_post_trackpoint_scroll(device, unaccel, time)) {
TRACE_END();
+=======
+ slot = device->mt.slot;
+ slot_data = &device->mt.slots[slot];
+
+ switch (device->pending_event) {
+ case EVDEV_NONE:
+>>>>>>> Remove unnecessary ttrace and add ttrace logs to another point
return;
}
seat->slot_map &= ~(1 << seat_slot);
+<<<<<<< HEAD
touch_notify_touch_up(base, time, slot_idx, seat_slot);
return true;
+=======
+ device->pending_event = EVDEV_NONE;
+>>>>>>> Remove unnecessary ttrace and add ttrace logs to another point
}
static bool
{
enum evdev_key_type type;
- TRACE_BEGIN(evdev_process_key);
-
/* ignore kernel key repeat */
- if (e->value == 2) {
- TRACE_END();
+ if (e->value == 2)
return;
- }
if (e->code == BTN_TOUCH) {
if (!device->is_mt)
+<<<<<<< HEAD
fallback_process_touch_button(dispatch,
device,
time,
e->value);
TRACE_END();
+=======
+ evdev_process_touch_button(device, time, e->value);
+>>>>>>> Remove unnecessary ttrace and add ttrace logs to another point
return;
}
break;
case EVDEV_KEY_TYPE_KEY:
case EVDEV_KEY_TYPE_BUTTON:
+<<<<<<< HEAD
if (!hw_is_key_down(dispatch, e->code)) {
TRACE_END();
+=======
+ if (!hw_is_key_down(device, e->code)) {
+>>>>>>> Remove unnecessary ttrace and add ttrace logs to another point
return;
}
}
LIBINPUT_BUTTON_STATE_RELEASED);
break;
}
- TRACE_END();
}
static void
struct evdev_device *device,
struct input_event *e, uint64_t time)
{
+<<<<<<< HEAD
struct normalized_coords wheel_degrees = { 0.0, 0.0 };
struct discrete_coords discrete = { 0.0, 0.0 };
enum libinput_pointer_axis_source source;
return;
}
+=======
+>>>>>>> Remove unnecessary ttrace and add ttrace logs to another point
switch (e->code) {
case REL_X:
if (dispatch->pending_event != EVDEV_RELATIVE_MOTION)
&discrete);
break;
}
- TRACE_END();
}
static inline void
struct input_event *e,
uint64_t time)
{
- TRACE_BEGIN(evdev_process_absolute);
if (device->is_mt) {
fallback_process_touch(dispatch, device, e, time);
} else {
fallback_process_absolute_motion(dispatch, device, e);
}
- TRACE_END();
}
static inline bool
e->value);
#endif
- TRACE_BEGIN(evdev_process_event);
-
dispatch->interface->process(dispatch, device, e, time);
-
- TRACE_END();
}
static inline void
evdev_device_dispatch_one(struct evdev_device *device,
struct input_event *ev)
{
+ TRACE_BEGIN(evdev_device_dispatch_one);
if (!device->mtdev) {
evdev_process_event(device, ev);
} else {
}
}
}
+ TRACE_END();
}
static int