Rename keymaps.[ch] to keymap.[ch]

This commit is contained in:
László Monda
2017-11-03 19:01:56 +01:00
parent 4072a0ea33
commit 0688c1bdfc
7 changed files with 6 additions and 6 deletions

34
right/src/keymap.h Normal file
View File

@@ -0,0 +1,34 @@
#ifndef __KEYMAPS_H__
#define __KEYMAPS_H__
// Includes:
#include <stdint.h>
#include "key_action.h"
// Macros:
#define MAX_KEYMAP_NUM 255
#define KEYMAP_ABBREVIATION_LENGTH 3
// Typedefs:
typedef struct {
const char *abbreviation;
uint16_t offset;
uint8_t abbreviationLen;
} keymap_reference_t;
// Variables:
extern keymap_reference_t AllKeymaps[MAX_KEYMAP_NUM];
extern uint8_t AllKeymapsCount;
extern uint8_t DefaultKeymapIndex;
extern uint8_t CurrentKeymapIndex;
extern key_action_t CurrentKeymap[LAYER_COUNT][SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
// Functions:
void SwitchKeymap(uint8_t index);
#endif