Skip to content

Commit

Permalink
Add a verbose print when a device is ignored as an accelerometer
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jul 26, 2021
1 parent 663e4b4 commit cd2f1bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,8 @@ void evdev_create(const char* device, struct mapping* mappings, bool verbose, in
libevdev_has_event_code(evdev, EV_ABS, ABS_BRAKE));

if (is_accelerometer) {
if (verbose)
printf("Ignoring accelerometer: %s\n", name);
libevdev_free(evdev);
close(fd);
return;
Expand Down

0 comments on commit cd2f1bb

Please sign in to comment.