robotgo/keycode.go

39 lines
918 B
Go
Raw Permalink Normal View History

// Copyright (c) 2016-2025 AtomAI, All rights reserved.
//
// See the COPYRIGHT file at the top-level directory of this distribution and at
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0>
//
// This file may not be copied, modified, or distributed
// except according to those terms.
package robotgo
import (
"github.com/vcaesar/keycode"
)
type uMap map[string]uint16
2019-06-18 18:36:10 +00:00
// MouseMap robotgo hook mouse's code map
var MouseMap = keycode.MouseMap
2019-03-06 18:01:16 +00:00
2022-02-01 07:12:24 +00:00
const (
// Mleft mouse left button
Mleft = "left"
Mright = "right"
Center = "center"
WheelDown = "wheelDown"
WheelUp = "wheelUp"
WheelLeft = "wheelLeft"
WheelRight = "wheelRight"
)
2019-06-18 18:36:10 +00:00
// Keycode robotgo hook key's code map
var Keycode = keycode.Keycode
2021-11-07 20:24:54 +00:00
// Special is the special key map
var Special = keycode.Special