Rename default_layout.c to current_keymap.c and add current_keymap.h
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include "led_display.h"
|
#include "led_display.h"
|
||||||
#include "layer.h"
|
#include "layer.h"
|
||||||
#include "usb_interface_mouse.h"
|
#include "usb_interface_mouse.h"
|
||||||
|
#include "current_keymap.h"
|
||||||
|
|
||||||
static uint8_t keyMasks[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
|
static uint8_t keyMasks[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
|
||||||
|
|
||||||
|
|||||||
@@ -90,8 +90,6 @@ typedef struct {
|
|||||||
};
|
};
|
||||||
} __attribute__ ((packed)) key_action_t;
|
} __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);
|
void HandleKeyboardEvents(usb_keyboard_report_t *keyboardReport, usb_mouse_report_t *mouseReport);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#include "deserialize.h"
|
#include "deserialize.h"
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
|
#include "current_keymap.h"
|
||||||
|
|
||||||
#define longCompactLengthPrefix 0xff
|
#define longCompactLengthPrefix 0xff
|
||||||
|
|
||||||
#define HAS_SCANCODE (1 << 0)
|
#define HAS_SCANCODE (1 << 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user