1 /* 2 * tracker/SIPButtons.h 3 * 4 * Copyright 2009 Peter Barth 5 * 6 * This file is part of Milkytracker. 7 * 8 * Milkytracker is free software: you can redistribute it and/or modify 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 11 * (at your option) any later version. 12 * 13 * Milkytracker is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with Milkytracker. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef __SIPBUTTONS_H__ 24 #define __SIPBUTTONS_H__ 25 26 // ---------------------------- First row of buttons ---------------------------- 27 static const char keyLine_0_lowerCase[] = {'\x60','1','2','3','4','5','6','7','8','9','0','-','='}; 28 static const char keyLine_0_upperCase[] = {'\x60','!','@','#','$','%','^','&','*','(',')','_','+'}; 29 static const pp_int32 keyLineIDs_0[sizeof(keyLine_0_lowerCase)] = {INPUT_BUTTON_WTF, INPUT_BUTTON_1, INPUT_BUTTON_2, INPUT_BUTTON_3, 30 INPUT_BUTTON_4, INPUT_BUTTON_5, INPUT_BUTTON_6, INPUT_BUTTON_7, 31 INPUT_BUTTON_8, INPUT_BUTTON_9, INPUT_BUTTON_0, INPUT_BUTTON_MINUS, INPUT_BUTTON_PLUS}; 32 33 // ---------------------------- Second row of buttons ---------------------------- 34 static const char keyLine_1_lowerCase[] = {'q','w','e','r','t','y','u','i','o','p','[',']'}; 35 static const char keyLine_1_upperCase[] = {'Q','W','E','R','T','Y','U','I','O','P','{','}'}; 36 static const pp_int32 keyLineIDs_1[sizeof(keyLine_1_lowerCase)] = {INPUT_BUTTON_Q, INPUT_BUTTON_W, INPUT_BUTTON_E, INPUT_BUTTON_R, 37 INPUT_BUTTON_T, INPUT_BUTTON_Y, INPUT_BUTTON_U, INPUT_BUTTON_I, 38 INPUT_BUTTON_O, INPUT_BUTTON_P, INPUT_BUTTON_BRACKETOPEN, INPUT_BUTTON_BRACKETCLOSE}; 39 40 static const pp_int32 keyLineSizes_1[sizeof(keyLine_1_lowerCase)] = {11,11,11,11,11,11,12,11,11,11,12,12}; 41 42 // ---------------------------- Third row of buttons ---------------------------- 43 static const char keyLine_2_lowerCase[] = {'a','s','d','f','g','h','j','k','l',';','\'','\\'}; 44 static const char keyLine_2_upperCase[] = {'A','S','D','F','G','H','J','K','L',':','\"','|'}; 45 static const pp_int32 keyLineIDs_2[sizeof(keyLine_2_lowerCase)] = {INPUT_BUTTON_A, INPUT_BUTTON_S, INPUT_BUTTON_D, INPUT_BUTTON_F, 46 INPUT_BUTTON_G, INPUT_BUTTON_H, INPUT_BUTTON_J, INPUT_BUTTON_K, 47 INPUT_BUTTON_L, INPUT_BUTTON_SEMICOLON, INPUT_BUTTON_TICK, INPUT_BUTTON_BACKSLASH}; 48 49 // ---------------------------- Fourth row of buttons ---------------------------- 50 static const char keyLine_3_lowerCase[] = {'~','z','x','c','v','b','n','m',',','.','/'}; 51 static const char keyLine_3_upperCase[] = {'|','Z','X','C','V','B','N','M','<','>','?'}; 52 static const pp_int32 keyLineIDs_3[sizeof(keyLine_3_lowerCase)] = {INPUT_BUTTON_TILDE, INPUT_BUTTON_Z, INPUT_BUTTON_X, INPUT_BUTTON_C, INPUT_BUTTON_V, 53 INPUT_BUTTON_B, INPUT_BUTTON_N, INPUT_BUTTON_M, INPUT_BUTTON_COMMA, INPUT_BUTTON_PERIOD, INPUT_BUTTON_SLASH}; 54 55 #endif 56