|
|
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[] = {
|
|
|
452870 |
{ 10, 10, 30, 20, XK_Armenian_vyun, "ւ", "Ւ" },
|
|
|
452870 |
{ 50, 10, 30, 20, XK_b, "b" },
|
|
|
452870 |
{ 90, 10, 30, 20, XK_c, "c" },
|
|
|
452870 |
{ 130, 10, 30, 20, XK_d, "d" },
|
|
|
452870 |
{ 10, 40, 30, 20, XK_Cyrillic_a, "а" },
|
|
|
452870 |
{ 50, 40, 30, 20, XK_Cyrillic_be, "б" },
|
|
|
452870 |
{ 90, 40, 30, 20, XK_Cyrillic_ve, "в" },
|
|
|
452870 |
{ 130, 40, 30, 20, XK_Cyrillic_ghe, "г" } };
|
|
|
452870 |
enum { keysCount = sizeof(keys)/sizeof(keys[0]) };
|
|
|
452870 |
|
|
|
452870 |
|
|
|
452870 |
App app = {
|
|
|
452870 |
{ keys, keysCount, 170, 70 } }; // 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 |
|