mouse

package
v0.0.0-...-4d18667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mouse handles input via mouse/touchpad.

Index

Constants

View Source
const (
	// Button1 is the first (left) mouse button.
	Button1 = Button(sdl.BUTTON_LEFT)
	// Button2 is the second (right) mouse button.
	Button2 = Button(sdl.BUTTON_RIGHT)
	// Button3 is the third (middle) mouse button.
	Button3 = Button(sdl.BUTTON_MIDDLE)
	// Button4 is the fourth mouse button.
	Button4 = Button(sdl.BUTTON_X1)
	// Button5 is the fifth mouse button.
	Button5 = Button(sdl.BUTTON_X2)
)

Variables

This section is empty.

Functions

func Hide

func Hide()

Hide makes the mouse cursor invisible.

func Show

func Show()

Show makes the mouse cursor visible

Types

type Button

type Button int

Button is a specific button of the mouse.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL