Hello. I created my own keyboard layout in gwin_keyboard_layout.c. :
static const GVSpecialKey Num1SKeys [] = {
{"\ 001", 0, GVKEY_SINGLESET, 1}, // \ 001 (1) = Shift Lower to Upper
{"\ 001", 0, GVKEY_INVERT | GVKEY_LOCKSET, 2}, // \ 002 (2) = Shift Upper to Upper Lock
{"\ 002", 0, GVKEY_INVERT | GVKEY_LOCKSET, 0}, // \ 003 (3) = Shift Upper Lock to Lower
{"123", 0, GVKEY_LOCKSET, 3}, // \ 004 (4) = Change to Numbers
{"Delete", "\ b", 0, 0}, // \ 005 (5) = Backspace
{"\ 015", "\ r", 0, 0}, // \ 006 (6) = Enter 1
{"\ 015", "\ r", 0, 0}, // \ 007 (7) = Enter 2 (Short keycap)
{"Sym", 0, GVKEY_LOCKSET, 4}, // \ 010 (8) = Change to Symbols
{"aA", 0, GVKEY_LOCKSET, 0}, // \ 011 (9) = Change to Lower Alpha
};
static const char * NumSet0 [] = {"\ 005 \ 005 \ 005", "789", "456", "123", "00 \ 006", 0};
static const GVKeySet NumSets [] = {NumSet0, 0};
const GVKeyTable VirtualKeyboard_Num1 = {Num1SKeys, NumSets};
I am trying to call in my program gwinKeyboardSetLayout(& ghKeyboard, VirtualKeyboard_English1);
but I'm getting an error when compiling:
'VirtualKeyboard_English1' undeclared (first use in this function) main.c
But if in gfxconf.h I define: #define GWIN_KEYBOARD_DEFAULT_LAYOUT VirtualKeyboard_Num1 it works. What is the correct way to use gwinKeyboardSetLayout ()?