cancel
Showing results for 
Search instead for 
Did you mean: 

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

TN
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Osman SOYKURT
ST Employee

Hello @TN ,

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 SOYKURT
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
Osman SOYKURT
ST Employee

Hello @TN ,

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 SOYKURT
ST Software Developer | TouchGFX

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.