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