aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_get_button_is_pressed.c
blob: e3c0265af63988646936f06df02886ffef150029 (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->internals->dev, EV_KEY, (unsigned int)code);
}