Hardware button Presses in the Simulator
Hi all,
For debugging purposes I would like to add hardware button presses to the simulator view in order to be able to better mimic the hardware that we run on (keypresses are working on the hardware already). I've edited the makefile used to build the simulator to include my added code, and I followed the same procedure of creating a KeySampler class that is of the type touchgfx::ButtonController and added the
static_cast<HALSDL2&>(hal).setButtonController(&btn);
To main.cpp. Right now for simplicity's sake the sample function of the class always returns "true" with the button press value hard coded to match one that should produce a reaction on the screen. Despite this the simulator GUI does not respond to the "button press". Using the touchgfx_printf() shows that the initialization for the KeySampler is being called, but that the sample function is not. Am I taking the wrong approach? Does this work differently in the simulator HAL than the hardware HAL?
Thank you,
Don
