Rename default_layout.c to current_keymap.c and add current_keymap.h

This commit is contained in:
László Monda
2017-01-09 20:25:35 +01:00
parent f6a8c56f61
commit a79a2c7365
5 changed files with 15 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#include "led_display.h"
#include "layer.h"
#include "usb_interface_mouse.h"
#include "current_keymap.h"
static uint8_t keyMasks[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];

View File

@@ -90,8 +90,6 @@ typedef struct {
};
} __attribute__ ((packed)) key_action_t;
extern key_action_t CurrentKeymap[LAYER_COUNT][SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
void HandleKeyboardEvents(usb_keyboard_report_t *keyboardReport, usb_mouse_report_t *mouseReport);
#endif

View File

@@ -0,0 +1,12 @@
#ifndef __CURRENT_KEYMAP_H_
#define __CURRENT_KEYMAP_H_
// Includes:
#include <stdint.h>
// Variables:
extern key_action_t CurrentKeymap[LAYER_COUNT][SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
#endif

View File

@@ -1,5 +1,7 @@
#include "deserialize.h"
#include "action.h"
#include "current_keymap.h"
#define longCompactLengthPrefix 0xff
#define HAS_SCANCODE (1 << 0)