touchgfx::HAL::sampleKey() method
@fn virtual bool HAL::sampleKey(uint8_t& key) Sample external key event. Sample external key event.
virtual bool sampleKey(uint8_t& key); Arguments
Return value
True if a keypress was detected and the "key" parameter is set to a value.