blob: 2e61297b9bc6717fc9d6f27c0eabf23ffee3af69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
/* 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->dev, EV_KEY, (unsigned int)code);
}
|