aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_get_relative_axis_name.c
blob: 5a16945306d338d27ecb531d0f237f4eb6eacc3b (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_relative_axis_name(const struct libgamepad_device *device, uint16_t code) /* will not be pure */
{
	if (device)
		return NULL;
	if ((size_t)code > ELEMSOF(libgamepad_relative_axis_names__))
		return NULL;
	return libgamepad_relative_axis_names__[code];
}