blob: 37ad9ac97617d28f832865f13b053f60287e0d82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
const char *
libgamepad_get_button_name(const struct libgamepad_device *device, uint16_t code)
{
if (device)
return NULL;
if ((size_t)code > ELEMSOF(libgamepad_button_names__))
return NULL;
return libgamepad_button_names__[code];
}
|