cancel
Showing results for 
Search instead for 
Did you mean: 

In TouchGFX is there a way to dynamically enable and disable the touch sensor from a hardware button ?

justin11
Senior
 
4 REPLIES 4
MM..1
Chief III

Yes in your target touch code

justin11
Senior

would you mind exapnding on this comment ?

MM..1
Chief III

In target folder STM32TouchController.cpp

justin11
Senior

Thanks, i've modified

bool STM32TouchController::sampleTouch ( int32_t& x, int32_t& y )

to return false when i've disabled it.