comparison kll_lib/hid_dict.py @ 28:bdcd737cddcb

Adding KEYPAD_ASTERISK (also internally renaming ASTERIX to ASTERISK) - When possible, use the symbolic names for keys in generatedKeymap.h e.g. KEY_A instead of 0x04
author Jacob Alexander <haata@kiibohd.com>
date Fri, 20 Feb 2015 21:04:05 -0800
parents ce7428de7787
children 43a72b401d44
comparison
equal deleted inserted replaced
27:fabcd3621d25 28:bdcd737cddcb
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # KLL Compiler - HID Dictionary Lookup 2 # KLL Compiler - HID Dictionary Lookup
3 # 3 #
4 # USB Code Lookup Dictionary 4 # USB Code Lookup Dictionary
5 # 5 #
6 # Copyright (C) 2014 by Jacob Alexander 6 # Copyright (C) 2014-2015 by Jacob Alexander
7 # 7 #
8 # This file is free software: you can redistribute it and/or modify 8 # This file is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by 9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or 10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version. 11 # (at your option) any later version.
103 ( 0x50, 'KEY_LEFT' ), 103 ( 0x50, 'KEY_LEFT' ),
104 ( 0x51, 'KEY_DOWN' ), 104 ( 0x51, 'KEY_DOWN' ),
105 ( 0x52, 'KEY_UP' ), 105 ( 0x52, 'KEY_UP' ),
106 ( 0x53, 'KEY_NUM_LOCK' ), 106 ( 0x53, 'KEY_NUM_LOCK' ),
107 ( 0x54, 'KEYPAD_SLASH' ), 107 ( 0x54, 'KEYPAD_SLASH' ),
108 ( 0x55, 'KEYPAD_ASTERIX' ), 108 ( 0x55, 'KEYPAD_ASTERISK' ),
109 ( 0x56, 'KEYPAD_MINUS' ), 109 ( 0x56, 'KEYPAD_MINUS' ),
110 ( 0x57, 'KEYPAD_PLUS' ), 110 ( 0x57, 'KEYPAD_PLUS' ),
111 ( 0x58, 'KEYPAD_ENTER' ), 111 ( 0x58, 'KEYPAD_ENTER' ),
112 ( 0x59, 'KEYPAD_1' ), 112 ( 0x59, 'KEYPAD_1' ),
113 ( 0x5A, 'KEYPAD_2' ), 113 ( 0x5A, 'KEYPAD_2' ),
343 ( 'LEFT', 0x50 ), 343 ( 'LEFT', 0x50 ),
344 ( 'DOWN', 0x51 ), 344 ( 'DOWN', 0x51 ),
345 ( 'UP', 0x52 ), 345 ( 'UP', 0x52 ),
346 ( 'NUMLOCK', 0x53 ), 346 ( 'NUMLOCK', 0x53 ),
347 ( 'P/', 0x54 ), ( 'KEYPAD SLASH', 0x54 ), 347 ( 'P/', 0x54 ), ( 'KEYPAD SLASH', 0x54 ),
348 ( 'P*', 0x55 ), ( 'KEYPAD ASTERIX', 0x55 ), 348 ( 'P*', 0x55 ), ( 'KEYPAD ASTERIX', 0x55 ), ( 'KEYPAD ASTERISK', 0x55 ),
349 ( 'P-', 0x56 ), ( 'KEYPAD MINUS', 0x56 ), 349 ( 'P-', 0x56 ), ( 'KEYPAD MINUS', 0x56 ),
350 ( 'P+', 0x57 ), ( 'KEYPAD PLUS', 0x57 ), 350 ( 'P+', 0x57 ), ( 'KEYPAD PLUS', 0x57 ),
351 ( 'PENTER', 0x58 ), ( 'KEYPAD ENTER', 0x58 ), 351 ( 'PENTER', 0x58 ), ( 'KEYPAD ENTER', 0x58 ),
352 ( 'P1', 0x59 ), ( 'KEYPAD 1', 0x59 ), 352 ( 'P1', 0x59 ), ( 'KEYPAD 1', 0x59 ),
353 ( 'P2', 0x5A ), ( 'KEYPAD 2', 0x5A ), 353 ( 'P2', 0x5A ), ( 'KEYPAD 2', 0x5A ),