libx52/util/x52_char_map.h

35 lines
828 B
C

/*
* Saitek X52 Pro Character Map
*
* Copyright (C) 2015 Nirenjan Krishnan (nirenjan@nirenjan.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, version 2.
*
*/
#ifndef X52_CHAR_MAP_H
#define X52_CHAR_MAP_H
#include <stddef.h>
#include <stdint.h>
enum {
TYPE_INVALID = 0, /* Invalid type (default) */
TYPE_POINTER, /* Pointer target */
TYPE_ENTRY /* Map entry value */
};
struct map_entry {
struct map_entry *next; /* Pointer to the next table */
uint8_t type; /* Type of entry */
uint8_t value; /* Value is valid if this is of TYPE_ENTRY */
};
extern struct map_entry map_root[];
#endif /* !defined X52_CHAR_MAP_H */