mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add addEvent "center" support and Update version
This commit is contained in:
parent
ece4ec792f
commit
e6fa68d0ff
@ -69,7 +69,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Version get the robotgo version
|
// Version get the robotgo version
|
||||||
Version = "v0.70.0.809, Caloris Montes!"
|
Version = "v0.80.0.840, Caloris Montes!"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetVersion get the robotgo version
|
// GetVersion get the robotgo version
|
||||||
@ -1196,12 +1196,12 @@ func GetImgSize(imgPath string) (int, int) {
|
|||||||
// parameters for the string type,
|
// parameters for the string type,
|
||||||
// the keyboard corresponding key parameters,
|
// the keyboard corresponding key parameters,
|
||||||
//
|
//
|
||||||
// mouse arguments: mleft, mright, wheelDown, wheelUp,
|
// mouse arguments: mleft, center, mright, wheelDown, wheelUp,
|
||||||
// wheelLeft, wheelRight.
|
// wheelLeft, wheelRight.
|
||||||
func AddEvent(key string) bool {
|
func AddEvent(key string) bool {
|
||||||
var (
|
var (
|
||||||
// cs *C.char
|
// cs *C.char
|
||||||
mArr = []string{"mleft", "mright", "wheelDown",
|
mArr = []string{"mleft", "center", "mright", "wheelDown",
|
||||||
"wheelUp", "wheelLeft", "wheelRight"}
|
"wheelUp", "wheelLeft", "wheelRight"}
|
||||||
mouseBool bool
|
mouseBool bool
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user