Diagnosing gesture selection
UPDD Commander is highly configurable, with a Default Gestures set defining the default system-wide gestures and actions, along with individual applications and groups used to specify gesture and action sets appropriate to their requirements. In addition, you can have separate gestures associated with UI elements (areas) of an application's dialog, so that when the gesture is performed on top of the UI element, the gesture and action are selected from those defined within the UI element.
Commander can distinguish the application in which a touch event is occurring, and even whether it is occurring in a specific area within the application, such as a menu with submenus or a scroll area. With this information Commander searches the application list and determines the best match for the given touch event and the action to be performed. The Default Gestures entry defines the highest level gestures and actions, used if no other application match is made.
With this high degree of configurability it can sometimes be confusing if a performed gesture does not do what is expected, for example when an application has been added with alternative actions, only to find that the old actions are still being invoked. This document describes the tools for analysing the gesture processing undertaken by Commander, on macOS and Windows: Select next performed gesture, Visualise Gestures, the output log and recording touches for support.
These two examples show applications that have inherited the standard list of UI elements, plus the addition of a UI element unique to the application:
| Dock UI elements | Finder UI elements |
![]() | ![]() |
The gesture control bar of the settings window offers options to show the selection made for the next gesture performed on the touch screen and to visualise the performed gesture and the selection process:

Select next performed gesture
Select this option and perform the gesture. Commander then highlights the gesture entry and associated action selected for it in the settings window, as in this example of a One Finger Press on the desktop (the Desktop UI element within the Finder application):

In this example, a one finger drag has been performed within the Chrome browser display (scroll) area. Commander has highlighted the gesture entry and associated action being performed:

If the gesture is performed on an application that is currently hidden in the application list you will see this dialog:

Select "Show and Select Gesture" to see the result of the application selection.
If the gesture performed is not defined, the "Select next performed gesture" button stays highlighted, indicating that this gesture will not be actioned. This can occur, for example, if you perform a gesture within an application that is in the application list but does not contain a definition of the gesture performed.
Where modifiers are defined, the selection also takes into account the modifier triggers active at the time.
Visualise Gestures
Introduced with Commander 1.8.0, this feature visualises the gesture being performed and annotates the selection process.

Toggle the "Visualise Gestures" option as required. While it is selected, the performed gesture is annotated as seen in this example, where a two finger drag is being performed on top of the Microsoft Remote Desktop application, within the scrollable area of the application dialog. Because that application is not listed as a separate application in the application list, the Two Finger Drag gesture has been selected from the Default Gestures Scrollable areas UI element, and performs a Scroll action.
![]() |
Output log
The output log is opened from the Output Log item of the Commander menu bar / system tray icon, or with View > Show Output Log in the settings window. It is used mainly as a debug tool that shows the internal operations of Commander and the gestures being calculated by the gesture engine in real time, and the action being invoked. It also logs any warnings and issues that Commander encounters during its operation.
When first opened the log level defaults to Info and the log shows system information, such as the operating system, driver and Commander versions in use:

There are four log levels:
| Level | Use |
| Debug | Messages useful for the developer / debugging. |
| Info | General messages useful for understanding the gesture selection process. |
| Warning | Notifications indicating unusual or unexpected conditions that might affect usage. |
| Error | Indicates something unexpected has occurred. |
The log window also has buttons to clear the log, add a marker (useful to separate the output of different tests) and save the log to a file.
When performing gestures on the touch device, the log shows the calculated gesture and its associated action, and also shows gesture analyser output that can be useful when investigating issues reported with gestures, especially at the Debug level. In this example the log shows that a three finger swipe was performed on the desktop, resulting in a "swipe between spaces" action:
| Log entry | Matching application, gesture and action (as defined in the Commander settings window) |
![]() | ![]() |
Entries in the log have the following meaning:
Touched application ID: the application or application group in which the gesture was performed.
Detected: the gesture detected.
Executing action: the action being performed, as defined in the matching gesture associated with the application. In the above example there happens to be a separate gesture definition for the Finder application, hence Finder being the matching application.
This example shows a simple click and drag on the desktop to test simple single click functionality:

Messages written when an application is slow to report its UI elements are described in Touch delay and latency in Commander. If requested by support, global setting upddcommander.applicationsettings.extra_touch_logging can be set to 1 to add extra touch logging.
Recording touches for support
To help investigate issues raised with gesture processing, Commander can capture all the touches it receives so that the gesture can be played back in a test environment to help identify the issue. The captured data is used for troubleshooting when gestures are reported as being mis-detected for a specific device and should be sent as part of the investigation of any gesture operational query.
- Open the Commander settings window and select Settings, Touch Gestures tab.
- Under Diagnostics, "Record all touches to file:", select Start.

- A file named updd_commander_diagnostics.txt is created on the desktop.
- Reproduce the issue on the touch screen.
- Select Stop. Remember to stop the recording once the gestures have been captured.
- Attach the file to a ticket raised at https://www.touch-base.com/contact.
For review
Log text checked against 1.15.0: "Touched application ID:" (TouchSourceManager.cpp:761); log levels and the Clear Log / Add Marker / Save Log... buttons (QtLogWindow.cpp:50-63); diagnostics file name (DiagnosticLogManager.cpp:22). The "Add Marker" and "Save Log" sentence is new.
Several screenshots (SelectNextGesture.png, UCGestureAllAppsL-era images) show "All Applications" rather than "Default Gestures"; the Touch Gestures diagnostics screenshot predates the current tab layout. Replacements would help.




