Skip to content
Jakub Sobon edited this page Mar 3, 2019 · 3 revisions

Doc Status

The mouse package exposes types that represent mouse buttons.

This is a data-only package which provides types that are accepted by the infrastructure and widgets in multiple locations.

The public API surface of this package consists of the following:

The mouse.Button type represents mouse buttons. The package provides predefined values for the recognised mouse buttons.

var button mouse.Button
button = mouse.ButtonLeft
Clone this wiki locally