hook

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DI struct {
	OnKey func(keyCode uint32, isDown bool) (preventDefault bool)
}

Functions

func AddCursorPos

func AddCursorPos(dx, dy int32)

func GetCursorPos

func GetCursorPos() (x, y int)

func Install

func Install()

func MouseDown

func MouseDown(button int)

MouseDown send mouse down event.

left = 0

right = 1

middle = 2

func MouseUp

func MouseUp(button int)

MouseUp send mouse up event. checkout MouseDown for button.

func SetCursorPos

func SetCursorPos(x, y int)

func Uninstall

func Uninstall()

func Wheel

func Wheel(amount int, horizontal bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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