device

package
v0.0.0-...-5c8b5a8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MOUSEEVENTF_LEFTDOWN   = 0x0002 // left button down
	MOUSEEVENTF_LEFTUP     = 0x0004 // left button up
	MOUSEEVENTF_RIGHTDOWN  = 0x0008 // right button down
	MOUSEEVENTF_RIGHTUP    = 0x0010 // right button up
	MOUSEEVENTF_MIDDLEDOWN = 0x0020 // middle button down
	MOUSEEVENTF_MIDDLEUP   = 0x0040 // middle button up
	MOUSEEVENTF_MOVE       = 0x0001 // Movement occurred.
)

see http://msdn.microsoft.com/en-us/library/ms646260(VS.85).aspx for details

Variables

This section is empty.

Functions

func SendMouseEvent

func SendMouseEvent()

func SendRawMouseEvent

func SendRawMouseEvent(dwFlags, dx, dy, dwData, dwExtraInfo uintptr)

Types

type ProcMouse

type ProcMouse struct{}

func Mouse

func Mouse() ProcMouse

func (ProcMouse) LeftKeyDown

func (p ProcMouse) LeftKeyDown()

func (ProcMouse) LeftKeyUp

func (p ProcMouse) LeftKeyUp()

func (ProcMouse) Move

func (p ProcMouse) Move(x, y float32)

func (ProcMouse) RightKeyDown

func (p ProcMouse) RightKeyDown()

func (ProcMouse) RightKeyUp

func (p ProcMouse) RightKeyUp()

Jump to

Keyboard shortcuts

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