Skip to main content
Associate II
August 23, 2023
Solved

Is it possible to zoom in using two fingers in Touch GFX Designer?

  • August 23, 2023
  • 1 reply
  • 1524 views

Hi, I have a question about the touch operation in the TouchGFX Designer.
I want to enlarge the display by spreading two fingers like a smartphone browser, but I can't find it even if I check the demo screen.
If it is possible to operate with two fingers, please point me to a page showing a usage example.

This topic has been closed for replies.
Best answer by Osman SOYKURT

Hello @TN_it ,

TouchGFX doesn't support multi touch. The TouchController interface is based on a single set of coordinates and whether a touch was registered or not.

 /**
 * Samples the position of the mouse cursor.
 *
 * @param [out] x The x coordinate.
 * @param [out] y The y coordinate.
 *
 * @return True if touch detected, false otherwise.
 */
 bool doSampleTouch(int32_t& x, int32_t& y) const;

1 reply

Osman SOYKURT
Osman SOYKURTBest answer
Technical Moderator
August 23, 2023

Hello @TN_it ,

TouchGFX doesn't support multi touch. The TouchController interface is based on a single set of coordinates and whether a touch was registered or not.

 /**
 * Samples the position of the mouse cursor.
 *
 * @param [out] x The x coordinate.
 * @param [out] y The y coordinate.
 *
 * @return True if touch detected, false otherwise.
 */
 bool doSampleTouch(int32_t& x, int32_t& y) const;
Osman SOYKURTST Software Developer | TouchGFX
TN_itAuthor
Associate II
August 24, 2023

Thank you for answering, @Osman SOYKURT .

I understand that it is not possible to distinguish between multiple coordinates.

I will consider zooming in using other touch operations.