* Add support for sdl style gamecontrollerdb to setup default mappings for controllers * Do not cache game controller entries, find them dynamically in the file when needed Co-authored-by: Zakk <zakk@rsdio.com>
16 lines
339 B
C
16 lines
339 B
C
#ifndef GAMECONTROLLER_DB_H
|
|
#define GAMECONTROLLER_DB_H
|
|
#include <linux/input.h>
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
|
|
#define MAX_GCDB_ENTRIES 6
|
|
|
|
//Including terminating nul
|
|
#define GUID_LEN 33
|
|
|
|
bool gcdb_map_for_controller(uint16_t bustype, uint16_t vid, uint16_t pid, uint16_t version, int dev_fd, uint32_t *fill_map);
|
|
#endif
|
|
|
|
|