mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
update travis support go 1.10.x
This commit is contained in:
parent
0e67e31cf4
commit
4544fabb91
@ -4,7 +4,7 @@ go:
|
|||||||
# - 1.7.x
|
# - 1.7.x
|
||||||
- 1.8.x
|
- 1.8.x
|
||||||
- 1.9.x
|
- 1.9.x
|
||||||
- "1.10"
|
- 1.10.x
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
@ -71,7 +71,7 @@ void calculateDeltas(CGEventRef *event, MMPoint point)
|
|||||||
/**
|
/**
|
||||||
* The next few lines are a workaround for games not detecting mouse moves.
|
* The next few lines are a workaround for games not detecting mouse moves.
|
||||||
* See this issue for more information:
|
* See this issue for more information:
|
||||||
* https://github.com/octalmage/robotjs/issues/159
|
* https://github.com/go-vgo/robotgo/issues/159
|
||||||
*/
|
*/
|
||||||
CGEventRef get = CGEventCreate(NULL);
|
CGEventRef get = CGEventCreate(NULL);
|
||||||
CGPoint mouse = CGEventGetLocation(get);
|
CGPoint mouse = CGEventGetLocation(get);
|
||||||
@ -244,7 +244,7 @@ void doubleClick(MMMouseButton button)
|
|||||||
void scrollMouse(int scrollMagnitude, MMMouseWheelDirection scrollDirection)
|
void scrollMouse(int scrollMagnitude, MMMouseWheelDirection scrollDirection)
|
||||||
{
|
{
|
||||||
#if defined(IS_WINDOWS)
|
#if defined(IS_WINDOWS)
|
||||||
// Fix for #97 https://github.com/octalmage/robotjs/issues/97,
|
// Fix for #97 https://github.com/go-vgo/robotgo/issues/97,
|
||||||
// C89 needs variables declared on top of functions (mouseScrollInput)
|
// C89 needs variables declared on top of functions (mouseScrollInput)
|
||||||
INPUT mouseScrollInput;
|
INPUT mouseScrollInput;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user