mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
* Extend Button/Key remap to support chording * Add saved autofire setting to 'advanced/chord' dialog
18 lines
575 B
C
18 lines
575 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);
|
|
void gcdb_show_string_for_ctrl_map(uint16_t bustype, uint16_t vid, uint16_t pid, uint16_t version,int dev_fd, const char *name, uint32_t *cur_map);
|
|
void get_ctrl_index_maps(int dev_fd, char *guid, uint16_t *btn_map, uint16_t *abs_map);
|
|
#endif
|
|
|
|
|