1*01e46bdbSMichael Lotz /* 2*01e46bdbSMichael Lotz * Copyright 2008, Michael Lotz <mmlr@mlotz.ch> 3*01e46bdbSMichael Lotz * Distributed under the terms of the Haiku License. 4*01e46bdbSMichael Lotz */ 5*01e46bdbSMichael Lotz #ifndef DEBUGGER_KEYMAPS_H 6*01e46bdbSMichael Lotz #define DEBUGGER_KEYMAPS_H 7*01e46bdbSMichael Lotz 8*01e46bdbSMichael Lotz #include "kernel_debugger_config.h" 9*01e46bdbSMichael Lotz 10*01e46bdbSMichael Lotz #if KDL_KEYMAP == 'sg' 11*01e46bdbSMichael Lotz const char kUnshiftedKeymap[128] = { 12*01e46bdbSMichael Lotz 0, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '\'', '^', 8, '\t', 13*01e46bdbSMichael Lotz 'q', 'w', 'e', 'r', 't', 'z', 'u', 'i', 'o', 'p', 0, 0, '\n', 0, 'a', 's', 14*01e46bdbSMichael Lotz 'd', 'f', 'g', 'h', 'j', 'k', 'l', 0, 0, 0, 0, '$', 'y', 'x', 'c', 'v', 15*01e46bdbSMichael Lotz 'b', 'n', 'm', ',', '.', '-', 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 16*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '-', 0, 0, 0, '+', 0, 17*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, '<', 0, 0, 0, 0, 0, 0, 0, 0, 0, 18*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 20*01e46bdbSMichael Lotz }; 21*01e46bdbSMichael Lotz 22*01e46bdbSMichael Lotz static const char kShiftedKeymap[128] = { 23*01e46bdbSMichael Lotz 0, 27, '+', '"', '*', 0, '%', '&', '/', '(', ')', '=', '?', '`', 8, '\t', 24*01e46bdbSMichael Lotz 'Q', 'W', 'E', 'R', 'T', 'Z', 'U', 'I', 'O', 'P', 0, '!', '\n', 0, 'A', 'S', 25*01e46bdbSMichael Lotz 'D', 'F', 'G', 'H', 'J', 'K', 'L', 0, 0, 0, 0, 0, 'Y', 'X', 'C', 'V', 26*01e46bdbSMichael Lotz 'B', 'N', 'M', ';', ':', '_', 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 27*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, '>', 0, 0, 0, 0, 0, 0, 0, 0, 0, 29*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 31*01e46bdbSMichael Lotz }; 32*01e46bdbSMichael Lotz 33*01e46bdbSMichael Lotz static const char kAltedKeymap[128] = { 34*01e46bdbSMichael Lotz 0, 27, 0, '@', '#', 0, 0, 0, '|', 0, 0, 0, 0, '~', 8, '\t', 35*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '[', ']', 0, 0, 0, 0, 36*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, '{', 0, 0, '}', 0, 0, 0, 0, 37*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 38*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, '\\', 0, 0, 0, 0, 0, 0, 0, 0, 0, 40*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 42*01e46bdbSMichael Lotz }; 43*01e46bdbSMichael Lotz 44*01e46bdbSMichael Lotz #else // default US keymap 45*01e46bdbSMichael Lotz 46*01e46bdbSMichael Lotz static const char kUnshiftedKeymap[128] = { 47*01e46bdbSMichael Lotz 0, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 8, '\t', 48*01e46bdbSMichael Lotz 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', 0, 'a', 's', 49*01e46bdbSMichael Lotz 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', 50*01e46bdbSMichael Lotz 'b', 'n', 'm', ',', '.', '/', 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 51*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52*01e46bdbSMichael Lotz '\\', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 53*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 55*01e46bdbSMichael Lotz }; 56*01e46bdbSMichael Lotz 57*01e46bdbSMichael Lotz static const char kShiftedKeymap[128] = { 58*01e46bdbSMichael Lotz 0, 27, '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', 8, '\t', 59*01e46bdbSMichael Lotz 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{', '}', '\n', 0, 'A', 'S', 60*01e46bdbSMichael Lotz 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', '"', '~', 0, '|', 'Z', 'X', 'C', 'V', 61*01e46bdbSMichael Lotz 'B', 'N', 'M', '<', '>', '?', 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 62*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 66*01e46bdbSMichael Lotz }; 67*01e46bdbSMichael Lotz 68*01e46bdbSMichael Lotz static const char kAltedKeymap[128] = { 69*01e46bdbSMichael Lotz 0, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 8, '\t', 70*01e46bdbSMichael Lotz 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', 0, 'a', 's', 71*01e46bdbSMichael Lotz 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', 72*01e46bdbSMichael Lotz 'b', 'n', 'm', ',', '.', '/', 0, '*', 0, ' ', 0, 0, 0, 0, 0, 0, 73*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74*01e46bdbSMichael Lotz '\\', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76*01e46bdbSMichael Lotz 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 77*01e46bdbSMichael Lotz }; 78*01e46bdbSMichael Lotz 79*01e46bdbSMichael Lotz #endif 80*01e46bdbSMichael Lotz #endif // DEBUGGER_KEYMAPS_H 81