add addEvent "center" support and Update version

This commit is contained in:
vcaesar 2019-03-08 11:07:10 -04:00
parent ece4ec792f
commit e6fa68d0ff

View File

@ -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
) )