blob: 031e5280b47f57f40849a90f29ea41503981d203 (
plain) (
tree)
|
|
/* 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) /* will not be pure */
{
if (device)
return NULL;
if ((size_t)code > ELEMSOF(libgamepad_button_names__))
return NULL;
return libgamepad_button_names__[code];
}
|