Documentation
¶
Index ¶
Constants ¶
View Source
const ( RightButton MouseButton = win.MK_RBUTTON LeftButton MouseButton = win.MK_LBUTTON ShiftKey ModifierKey = win.VK_SHIFT CtrlKey ModifierKey = win.VK_CONTROL )
Variables ¶
View Source
var ( WindowLeftX = 0 WindowTopY = 0 GameAreaSizeX = 0 GameAreaSizeY = 0 )
Functions ¶
func Click ¶
func Click(btn MouseButton, x, y int)
Click just does a single mouse click at current pointer position
func ClickWithModifier ¶
func ClickWithModifier(btn MouseButton, x, y int, modifier ModifierKey)
func MovePointer ¶
func MovePointer(x, y int)
MovePointer moves the mouse to the requested position, x and y should be the final position based on pixels shown in the screen. Top-left corner is 0,0
Types ¶
type Changeable ¶
type ModifierKey ¶
type ModifierKey uint
type MouseButton ¶
type MouseButton uint
Click to show internal directories.
Click to hide internal directories.