You can define gestures that involve only the motion of a pointing device such as a mouse, or an alternative pointing device, such as a head pointer or trackball. The syntax of the gesture does not change depending on whether you are using a mouse or an alternative pointing device. Edit the AccessKeyMouseEvents file to associate motion gestures with assistive technologies.
If the dwellmouselistener GtkModule is loaded, alternative pointing devices are temporarily latched to the core pointer. This means that if the user moves the alternative pointing device, the on-screen pointer moves.
For example, the following line starts On-Screen Keyboard in dwell mode when the user moves the on-screen pointer from inside the login dialog through the top edge, back into the dialog through the top edge, out of the dialog through the left edge, back into the dialog through the left edge, and similarly through the bottom and right edges of the dialog in a cross pattern:
TTLLBBRR O 10000 gok --login --access-method=dwellselection --input-device=MOUSE
Note that the --input-device parameter specified in the gesture must match the name of the extended user input device, such as a head pointer or trackball, as specified in /etc/X11/XF86Config.