MultiTouchMinimalDemo([dev][, screenId=max][, verbose=0]) - A basic demo for multi-touch touchscreens.

Run it. Pressing the ESCape key will stop it.

Touch the screen and watch the nice colorful happy blobs
sprinkle to life :)

The demo will try to use the first available touchscreen, or if
there isn’t any touchscreen, the first available touchpad. You
can also select a specific touch device by passing in its ‘dev’
device handle. Use of touchpads usually needs special configuration.
See “help TouchInput” for more info.

You can select a specific screen to display on - usually the screenId
of the touch screen display surface - with the optional ‘screenId’ parameter,
or it will select the default maximum screenId if omitted.

If you set the optional ‘verbose’ flag to 1, then the unique touch
id and time delta in msecs between touch updates for each touchpoint
will be printed. This slows the processing down somewhat, as ‘DrawText’
is more slow than most other drawing functions.

This demo currently works on Linux + X11 display system, not on Linux + Wayland.
It also works on MS-Windows 10 and later.

For background info on capabilities and setup see “help TouchInput”.

Path   Retrieve current version from GitHub | View changelog