DVUI

mouseType

Guess which type of pointing device is being used (touchpad vs. mouse). Meaningful after a mouse wheel event when backends pass mouse type to Window.addEventMouseWheel.

Some backends can detect a switch between touchpad and mouse instantly, others require a 1 second gap.

Only valid between Window.begin and Window.end.

Source

Implementation

#
pub fn mouseType() enums.MouseType {
    return currentWindow().mouse_type;
}