Move SCI extra definitions, add combo definitions
This commit is contained in:
@ -3,11 +3,6 @@
|
|||||||
|
|
||||||
#include <common/keymap.h>
|
#include <common/keymap.h>
|
||||||
|
|
||||||
// Extra SCI layer for keyboard backlight control
|
|
||||||
#define KT_SCI_EXTRA (0x4000)
|
|
||||||
|
|
||||||
#define SCI_EXTRA (0x50)
|
|
||||||
|
|
||||||
#define ___ 0
|
#define ___ 0
|
||||||
|
|
||||||
// Conversion of physical layout to keyboard matrix
|
// Conversion of physical layout to keyboard matrix
|
||||||
|
@ -3,12 +3,6 @@
|
|||||||
|
|
||||||
#include <common/keymap.h>
|
#include <common/keymap.h>
|
||||||
|
|
||||||
// Extra SCI layer for keyboard backlight control
|
|
||||||
#define KT_SCI_EXTRA (0x4000)
|
|
||||||
|
|
||||||
#define SCI_EXTRA (0x50)
|
|
||||||
#define SCI_EXTRA_KBD_BKL (0x8A)
|
|
||||||
|
|
||||||
#define ___ 0
|
#define ___ 0
|
||||||
|
|
||||||
// Conversion of physical layout to keyboard matrix
|
// Conversion of physical layout to keyboard matrix
|
||||||
|
@ -3,12 +3,6 @@
|
|||||||
|
|
||||||
#include <common/keymap.h>
|
#include <common/keymap.h>
|
||||||
|
|
||||||
// Extra SCI layer for keyboard backlight control
|
|
||||||
#define KT_SCI_EXTRA (0x4000)
|
|
||||||
|
|
||||||
#define SCI_EXTRA (0x50)
|
|
||||||
#define SCI_EXTRA_KBD_BKL (0x8A)
|
|
||||||
|
|
||||||
#define ___ 0
|
#define ___ 0
|
||||||
|
|
||||||
// Conversion of physical layout to keyboard matrix
|
// Conversion of physical layout to keyboard matrix
|
||||||
|
@ -15,14 +15,28 @@ uint16_t keymap_translate(uint16_t key);
|
|||||||
// Layer selection
|
// Layer selection
|
||||||
#define KT_FN (0x1000)
|
#define KT_FN (0x1000)
|
||||||
|
|
||||||
// SCI
|
// Combinations
|
||||||
#define KT_SCI (0x2000)
|
#define KT_COMBO (0x2000)
|
||||||
|
|
||||||
|
#define COMBO_PRINT_SCREEN 0
|
||||||
|
#define K_PRINT_SCREEN (KT_COMBO | COMBO_PRINT_SCREEN)
|
||||||
|
|
||||||
|
// SCI
|
||||||
|
#define KT_SCI (0x4000)
|
||||||
|
|
||||||
|
#define SCI_DISPLAY_TOGGLE (0x0B)
|
||||||
|
#define SCI_DISPLAY_MODE (0x10)
|
||||||
#define SCI_BRIGHTNESS_DOWN (0x11)
|
#define SCI_BRIGHTNESS_DOWN (0x11)
|
||||||
#define SCI_BRIGHTNESS_UP (0x12)
|
#define SCI_BRIGHTNESS_UP (0x12)
|
||||||
#define SCI_CAMERA_TOGGLE (0x13)
|
#define SCI_CAMERA_TOGGLE (0x13)
|
||||||
#define SCI_AIRPLANE_MODE (0x14)
|
#define SCI_AIRPLANE_MODE (0x14)
|
||||||
#define SCI_SUSPEND (0x15)
|
#define SCI_SUSPEND (0x15)
|
||||||
|
#define SCI_EXTRA (0x50)
|
||||||
|
|
||||||
|
// Extra SCI layer for keyboard backlight control
|
||||||
|
#define KT_SCI_EXTRA (0x8000)
|
||||||
|
|
||||||
|
#define SCI_EXTRA_KBD_BKL (0x8A)
|
||||||
|
|
||||||
// See http://www.techtoys.com.hk/Downloads/Download/Microchip/PS2_driver/ScanCode.pdf
|
// See http://www.techtoys.com.hk/Downloads/Download/Microchip/PS2_driver/ScanCode.pdf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user