generic mouse support in wscons
wsmouse* at ...
driver is an abstraction layer
for mice and other pointing devices within the
framework. It is
attached to the hardware specific drivers and provides a character device
interface which returns struct wscons_event
. For use with X
servers, “mouse events” or “touch events” can be
driver provides a number of ioctl
functions to control various parameters (see
access to these variables.
Touchpad input is processed in one of two modes: In “absolute
touch events. Absolute mode is activated by
“compatibility mode”, which is the default,
converts the input internally and
generates mouse events.
can query and
set several configuration parameters for this mode. The composite field names
have the form
is the index of the
is omitted, commands apply to
- Setting this parameter to a non-zero value enables tap gestures. Contacts
on the touchpad that are immediately released again trigger click events.
One-finger, two-finger, and three-finger taps generate left-button,
right-button, and middle-button clicks, respectively. If, within a short
time interval, a second touch follows a one-finger tap, the button-up
event is not issued until that touch ends
- The value is a scale coefficient that is applied to the relative
coordinates. It determines the base speed of the pointer.
- If this parameter has a non-zero value, the order of software button areas
is inverted. If edge scrolling is enabled, the scroll area is set up at
the left edge of the touchpad.
- A non-zero value disables pointer movement, tapping, and scrolling.
Software buttons (and external physical buttons) will work as usual.
- This field contains a list of four values that define the relative sizes
of the edge areas, in the order:
The unit is percent of the total height of the touchpad surface, or of its
total width, respectively. In order to mitigate the effects of accidental
touches, the driver ignores most types of input from an edge area (see
below). If an edge area contains software buttons, they fill up the space
The automatic configuration enables two-finger scrolling and sets up edge areas
at the vertical edges. On clickpads - where the device surface serves as a
single, large button - it provides three software button areas at the bottom
edge, for left-button, middle-button, and right-button clicks. On some laptops
with a trackpoint, the software buttons are at the top edge. Vertical edge
scrolling will be enabled on older touchpads that do not report contact
A touch that starts and remains in an edge area does not trigger pointer
movement. At the vertical edges and the top edge, tapping and two-finger
scrolling require that at least one touch is in the main area of the touchpad
(the exact behaviour of a single-touch device depends on its firmware in this
case). When multi-touch input is available, a touch is ignored if it rests in
the bottom area while there are other inputs - movement, scrolling, or tapping
-, and the driver continues to ignore it as long as and whenever other touches