|
|
452870 |
|
|
|
452870 |
#include "app.h"
|
|
|
452870 |
|
|
|
452870 |
#include "common.c"
|
|
|
452870 |
#include "app.c"
|
|
|
452870 |
#include "graph.c"
|
|
|
452870 |
#include "input.c"
|
|
|
452870 |
#include "keyboard.c"
|
|
|
452870 |
|
|
|
452870 |
|
|
|
452870 |
Key keys[] = {
|
|
|
843e7a |
{ 10, 10, 30, 20, XK_Armenian_vyun, XK_Armenian_VYUN, "ւ", "Ւ" },
|
|
|
843e7a |
{ 50, 10, 30, 20, XK_b, XK_B, "b", "B" },
|
|
|
843e7a |
{ 90, 10, 30, 20, XK_c, XK_X, "c", "X" },
|
|
|
843e7a |
{ 130, 10, 30, 20, XK_5, XK_percent, "5", "%", KF_DOUBLE },
|
|
|
843e7a |
{ 10, 40, 30, 20, XK_Cyrillic_a, XK_Cyrillic_a, "а", "а" },
|
|
|
843e7a |
{ 50, 40, 30, 20, XK_Cyrillic_be, XK_Cyrillic_BE, "б", "Б" },
|
|
|
843e7a |
{ 90, 40, 30, 20, XK_Cyrillic_ve, 0, "в" },
|
|
|
843e7a |
{ 130, 40, 30, 20, XK_6, XK_exclam, "6", "!", KF_DOUBLE },
|
|
|
843e7a |
{ 10, 70, 30, 20, 0, 0, "[x]", NULL, KF_CLOSE },
|
|
|
843e7a |
{ 50, 70, 30, 20, 0, 0, "[:::]", NULL, KF_MOVE },
|
|
|
843e7a |
{ 90, 70, 30, 20, 0, 0, "[<]", NULL, KF_LAYOUT, LI_REVERT },
|
|
|
843e7a |
{ 130, 70, 30, 20, 0, 0, "[x]", NULL, KF_SIZE },
|
|
|
843e7a |
};
|
|
|
452870 |
enum { keysCount = sizeof(keys)/sizeof(keys[0]) };
|
|
|
452870 |
|
|
|
452870 |
|
|
|
843e7a |
Layout layouts[] = {
|
|
|
843e7a |
{ keys, COUNTOF(keys), 170, 100 } };
|
|
|
843e7a |
|
|
|
843e7a |
|
|
|
452870 |
App app = {
|
|
|
843e7a |
{ layouts, COUNTOF(layouts), 170, 100 } }; // keyboard
|
|
|
452870 |
|
|
|
452870 |
|
|
|
452870 |
int main() {
|
|
|
452870 |
if (!appInit(&app))
|
|
|
452870 |
return 1;
|
|
|
452870 |
if (!appRun(&app))
|
|
|
452870 |
return 1;
|
|
|
452870 |
appDeinit(&app);
|
|
|
452870 |
return 0;
|
|
|
452870 |
}
|
|
|
452870 |
|