mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-04 12:55:44 +00:00
Block out basic keycodes
This commit is contained in:
parent
218bd48ebc
commit
ea92d5ed7d
1298
data/constants/keycodes_0.0.1.json
Normal file
1298
data/constants/keycodes_0.0.1.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
|
uses: {
|
||||||
|
keycodes: 0.0.1
|
||||||
|
}
|
||||||
|
|
||||||
documentation: {
|
documentation: {
|
||||||
order: [
|
order: [
|
||||||
broadcast_messages
|
broadcast_messages
|
||||||
|
@ -4,17 +4,17 @@ import cmd
|
|||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
import gzip
|
import gzip
|
||||||
|
from pathlib import Path
|
||||||
from platform import platform
|
from platform import platform
|
||||||
|
|
||||||
from milc import cli
|
from milc import cli
|
||||||
|
|
||||||
KEYCODE_MAP = {
|
from qmk.json_schema import json_load
|
||||||
# TODO: this should be data driven...
|
|
||||||
0x04: 'KC_A',
|
# TODO: get from xap "uses" for the current device
|
||||||
0x05: 'KC_B',
|
keycode_version = '0.0.1'
|
||||||
0x29: 'KC_ESCAPE',
|
spec = json_load(Path(f'data/constants/keycodes_{keycode_version}.json'))
|
||||||
0xF9: 'KC_MS_WH_UP',
|
KEYCODE_MAP = {int(k, 16): v.get('key') for k, v in spec['keycodes'].items()}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def _is_xap_usage(x):
|
def _is_xap_usage(x):
|
||||||
|
Loading…
Reference in New Issue
Block a user