Files
Main_MiSTer/gamecontroller_db.h
zakk4223 5b4acd3c7b input: add support for sdl gamecontrollerdb to setup default mappings for controllers
* 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>
2022-08-22 21:46:16 +08:00

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