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