How to emulate TouchGFX touch input using Hardware Buttons (especially in Scroll List)
I am using TouchGFX for a project with hardware buttons, but no touch screen.
Im trying to interface with the UI elements using the hardware buttons. For example I have a ScrollList full of toggle buttons, and I wish to toggle these buttons using the hardware buttons.
Screen1ViewBase.cpp
ClickEvent ce(ClickEvent::PRESSED, 14, 12);
scrollList1.handleClickEvent(ce);
ClickEvent ce1(ClickEvent::RELEASED, 14, 12);
scrollList1.handleClickEvent(ce1);
scrollList1.invalidate();
However this does not trigger the toggle button at 14,12 on the screen (origin top left).
As well as this, is there generally a better way to interact with the UI using hardware buttons, or is the emulation of ClickEvents and DragEvents the best solution?
Thanks,
