Documentation
¶
Index ¶
- Constants
- Variables
- func DestroyContext(ctx Context)
- func IsKeyboard(dev Device) bool
- func IsMouse(dev Device) bool
- func Load() error
- func SendKey(ctx Context, dev Device, s *KeyStroke) error
- func SendMouse(ctx Context, dev Device, s *MouseStroke) error
- func SetLibraryPath(path string)
- func Unload()
- type Context
- type Device
- type KeyStroke
- type MouseStroke
Constants ¶
View Source
const ( MouseStateLeftDown = 0x001 MouseStateLeftUp = 0x002 MouseStateRightDown = 0x004 MouseStateRightUp = 0x008 MouseStateMiddleDown = 0x010 MouseStateMiddleUp = 0x020 MouseStateWheel = 0x400 MouseFlagMoveRelative = 0x000 MouseFlagMoveAbsolute = 0x001 )
Constants for Mouse
View Source
const ( KeyStateDown = 0x00 KeyStateUp = 0x01 KeyStateE0 = 0x02 KeyStateE1 = 0x04 )
Constants for Keyboard
Variables ¶
View Source
var ( ErrLibraryNotFound = fmt.Errorf("interception library not found") ErrSendFailed = fmt.Errorf("interception_send failed") )
Functions ¶
func DestroyContext ¶
func DestroyContext(ctx Context)
func IsKeyboard ¶
func SetLibraryPath ¶
func SetLibraryPath(path string)
SetLibraryPath sets the path for LoadLibrary.
Types ¶
Click to show internal directories.
Click to hide internal directories.