1# Lint as: python2, python3 2 3# HID has one keymapping, and linux input for the event recorder has another. 4 5# This is not complete, just for initial debugging 6linux_input_keymap = { 7 2: '1', 8 3: '2', 9 4: '3', 10 5: '4', 11 6: '5', 12 7: '6', 13 8: '7', 14 9: '8', 15 10: '9', 16 11: '0', 17 12: '-', 18 13: '=', 19 14: '\b', 20 15: '\t', 21 16: 'q', 22 17: 'w', 23 18: 'e', 24 19: 'r', 25 20: 't', 26 21: 'y', 27 22: 'u', 28 23: 'i', 29 24: 'o', 30 25: 'p', 31 26: '{', 32 27: '}', 33 28: '\n', 34 30: 'a', 35 31: 's', 36 32: 'd', 37 33: 'f', 38 34: 'g', 39 35: 'h', 40 36: 'j', 41 37: 'k', 42 38: 'l', 43 39: ';', 44 40: '\'', 45 41: '`', 46 43: '\\', 47 44: 'z', 48 45: 'x', 49 46: 'c', 50 47: 'v', 51 48: 'b', 52 49: 'n', 53 50: 'm', 54 51: ',', 55 52: '.', 56 53: '/', 57 57: ' ', 58} 59