3 Mouse API
Jakub Sobon edited this page 2019-03-03 18:47:25 -05:00

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:

mouse.Button

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

var button mouse.Button
button = mouse.ButtonLeft