You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.4 KiB
68 lines
2.4 KiB
/* Kaleidoscope - Firmware for computer input devices
|
|
* Copyright (C) 2013-2018 Keyboard.io, Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License as published by the Free Software
|
|
* Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// This file contains aliases for Kaleidoscope's HID key definitions.
|
|
//
|
|
// These aliases are provided as a convenience for end users Our goal is to
|
|
// offer up macros that fit what users guess the macros might be called, while
|
|
// not polluting the main tables of aliases.
|
|
//
|
|
// The first group defined here provide short alternate names for a variety
|
|
// of keys.
|
|
|
|
#define Key_Space Key_Spacebar
|
|
#define Key_LBracket Key_LeftBracket
|
|
#define Key_LArrow Key_LeftArrow
|
|
#define Key_LCtrl Key_LeftControl
|
|
#define Key_LShift Key_LeftShift
|
|
#define Key_LAlt Key_LeftAlt
|
|
#define Key_LGui Key_LeftGui
|
|
#define Key_RBracket Key_RightBracket
|
|
#define Key_RArrow Key_RightArrow
|
|
#define Key_RCtrl Key_RightControl
|
|
#define Key_RShift Key_RightShift
|
|
#define Key_RAlt Key_RightAlt
|
|
#define Key_RGui Key_RightGui
|
|
#define Key_Esc Key_Escape
|
|
|
|
#define Key_LSquareBracket Key_LeftBracket
|
|
#define Key_RSquareBracket Key_RightBracket
|
|
|
|
// To match Key_UpArrow
|
|
#define Key_DnArrow Key_DownArrow
|
|
|
|
|
|
#define Key_LeftParen LSHIFT(Key_9)
|
|
#define Key_RightParen LSHIFT(Key_0)
|
|
#define Key_LeftCurlyBracket LSHIFT(Key_LeftBracket)
|
|
#define Key_RightCurlyBracket LSHIFT(Key_RightBracket)
|
|
|
|
#define Key_Pipe LSHIFT(Key_Backslash)
|
|
|
|
// To make it easier to create custom shortcuts, that do not interfere with
|
|
// system ones, an old trick is to use many modifiers. To make this easier,
|
|
// Ctrl+Shift+Alt is commonly abbreviated as "Meh", while Ctrl+Shift+Alt+GUI is
|
|
// often called "Hyper". To support this, we offer the `Key_Meh` and `Key_Hyper`
|
|
// aliases, along with `MEH(k)` and `HYPER(k)` to go with them.
|
|
|
|
#define Key_Meh LCTRL(LSHIFT(Key_LeftAlt))
|
|
#define Key_Hyper MEH(Key_LeftGui)
|
|
|
|
#define MEH(k) LCTRL(LSHIFT(LALT((k))))
|
|
#define HYPER(k) LGUI(MEH((k)))
|