/* See LICENSE file for copyright and license details. */ #include "common.h" int libgamepad_get_button_is_pressed(struct libgamepad_device *device, uint16_t code) { return libevdev_get_event_value(device->internals->dev, EV_KEY, (unsigned int)code); }