#include <stdint.h>
#include <stdbool.h>
#include <avr/pgmspace.h>
-#include "keyboard.h"
+#include "host.h"
#include "usb_keycodes.h"
#include "print.h"
#include "debug.h"
#include "util.h"
-#include "keymap_skel.h"
+#include "keymap.h"
// Convert physical keyboard layout to matrix array.
4, // Fn4
0, // Fn5
0, // Fn6
- 1 // Fn7
+ 0 // Fn7
};
// Assign Fn key(0-7) to a keycode sent when release Fn key without use of the layer.
* |-----------------------------------------------------------|
* |Shift | Z| X| C| V| B| N| M| ,| .|Fn2|Shift |Fn1|
* `-----------------------------------------------------------'
- * |Gui|Alt |Fn4 |Alt |Fn7|
+ * |Gui|Alt |Fn5 |Alt |Fn4|
* `-------------------------------------------'
*/
KEYMAP(KB_ESC, KB_1, KB_2, KB_3, KB_4, KB_5, KB_6, KB_7, KB_8, KB_9, KB_0, KB_MINS,KB_EQL, KB_BSLS,KB_GRV, \
{
return pgm_read_byte(&fn_keycode[(biton(fn_bits))]);
}
-
-// define a condition to enter special function mode
-bool keymap_is_special_mode(uint8_t fn_bits)
-{
- return keyboard_get_mods() == (BIT_LSHIFT | BIT_RSHIFT) || keyboard_get_mods() == (BIT_LCTRL | BIT_RSHIFT);
-}