Interact with the keyboard of TouchGFX from code
I have developed a custom keyboard in TouchGFX and it is working fine, but now i would need to change the alpha property of some keys, and also press the keys, all from the code. In order to press a button widget from code i do the following:
x=button->getX();
y=button->getY();
x+=5;
y+=5;
evnt = ClickEvent::PRESSED;
ClickEvent click1(evnt, x, y);
button->handleClickEvent(click1);
button-> invalidate();
evnt = ClickEvent::RELEASED;
ClickEvent click2(evnt, x, y);
button->handleClickEvent(click2);
button-> invalidate();
In the case of the keyboard i have tried to do something similar with the method "virtual void handleClickEvent(const ClickEvent& evt);" of the keyboard class, but anything happened. I would really appreciate any help. Thanks in advance.
