From 743739483ebbd2dcb460588eb323cf7d39a7d945 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 7 Dec 2023 23:53:28 +0100 Subject: [PATCH] debug --- dev_in.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev_in.c b/dev_in.c index 14d9b5c..1f677e5 100644 --- a/dev_in.c +++ b/dev_in.c @@ -104,6 +104,8 @@ int open_device( if (res != 0) { fprintf(stderr, "Unable to open the specified device: %d\n", res); goto open_device_err; + } else { + printf("I got a device.\n"); } out_dev->has_rumble_support = libevdev_has_event_type(out_dev->evdev, EV_FF) && libevdev_has_event_code(out_dev->evdev, EV_FF, FF_RUMBLE);