mouse 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/History.markdown +8 -0
- data/README.markdown +14 -1
- data/Rakefile +12 -13
- data/ext/mouse/extconf.rb +13 -18
- data/ext/mouse/mouse.c +613 -497
- data/ext/mouse/mouser.c +321 -333
- data/ext/mouse/mouser.h +53 -54
- data/lib/mouse.rb +2 -0
- data/lib/mouse/version.rb +2 -2
- metadata +39 -59
- metadata.gz.sig +1 -0
data/ext/mouse/mouser.h
CHANGED
@@ -11,78 +11,77 @@
|
|
11
11
|
|
12
12
|
typedef unsigned int uint_t;
|
13
13
|
|
14
|
-
CGPoint mouse_current_position();
|
14
|
+
CGPoint mouse_current_position(void);
|
15
15
|
|
16
|
-
void mouse_move_to(CGPoint point);
|
17
|
-
void mouse_move_to2(CGPoint point, double duration);
|
16
|
+
void mouse_move_to(const CGPoint point);
|
17
|
+
void mouse_move_to2(const CGPoint point, const double duration);
|
18
18
|
|
19
|
-
void mouse_drag_to(CGPoint point);
|
20
|
-
void mouse_drag_to2(CGPoint point, double duration);
|
19
|
+
void mouse_drag_to(const CGPoint point);
|
20
|
+
void mouse_drag_to2(const CGPoint point, const double duration);
|
21
21
|
|
22
|
-
void mouse_scroll(int amount);
|
23
|
-
void mouse_scroll2(int amount, CGScrollEventUnit units);
|
24
|
-
void mouse_scroll3(int amount, CGScrollEventUnit units, double duration);
|
22
|
+
void mouse_scroll(const int amount);
|
23
|
+
void mouse_scroll2(const int amount, const CGScrollEventUnit units);
|
24
|
+
void mouse_scroll3(const int amount, const CGScrollEventUnit units, const double duration);
|
25
25
|
|
26
|
-
void mouse_horizontal_scroll(int amount);
|
27
|
-
void mouse_horizontal_scroll2(int amount, CGScrollEventUnit units);
|
28
|
-
void mouse_horizontal_scroll3(int amount, CGScrollEventUnit units, double duration);
|
26
|
+
void mouse_horizontal_scroll(const int amount);
|
27
|
+
void mouse_horizontal_scroll2(const int amount, const CGScrollEventUnit units);
|
28
|
+
void mouse_horizontal_scroll3(const int amount, const CGScrollEventUnit units, const double duration);
|
29
29
|
|
30
|
-
void mouse_click_down();
|
31
|
-
void mouse_click_down2(CGPoint point);
|
32
|
-
void mouse_click_down3(CGPoint point, uint_t sleep_quanta);
|
30
|
+
void mouse_click_down(void);
|
31
|
+
void mouse_click_down2(const CGPoint point);
|
32
|
+
void mouse_click_down3(const CGPoint point, const uint_t sleep_quanta);
|
33
33
|
|
34
|
-
void mouse_click_up();
|
35
|
-
void mouse_click_up2(CGPoint point);
|
34
|
+
void mouse_click_up(void);
|
35
|
+
void mouse_click_up2(const CGPoint point);
|
36
36
|
|
37
|
-
void mouse_click();
|
38
|
-
void mouse_click2(CGPoint point);
|
37
|
+
void mouse_click(void);
|
38
|
+
void mouse_click2(const CGPoint point);
|
39
39
|
|
40
|
-
void mouse_secondary_click_down();
|
41
|
-
void mouse_secondary_click_down2(CGPoint point);
|
42
|
-
void mouse_secondary_click_down3(CGPoint point, uint_t sleep_quanta);
|
40
|
+
void mouse_secondary_click_down(void);
|
41
|
+
void mouse_secondary_click_down2(const CGPoint point);
|
42
|
+
void mouse_secondary_click_down3(const CGPoint point, const uint_t sleep_quanta);
|
43
43
|
|
44
|
-
void mouse_secondary_click_up();
|
45
|
-
void mouse_secondary_click_up2(CGPoint point);
|
44
|
+
void mouse_secondary_click_up(void);
|
45
|
+
void mouse_secondary_click_up2(const CGPoint point);
|
46
46
|
|
47
|
-
void mouse_secondary_click();
|
48
|
-
void mouse_secondary_click2(CGPoint point);
|
49
|
-
void mouse_secondary_click3(CGPoint point, uint_t sleep_quanta);
|
47
|
+
void mouse_secondary_click(void);
|
48
|
+
void mouse_secondary_click2(const CGPoint point);
|
49
|
+
void mouse_secondary_click3(const CGPoint point, const uint_t sleep_quanta);
|
50
50
|
|
51
|
-
void mouse_arbitrary_click_down(CGEventMouseSubtype button);
|
52
|
-
void mouse_arbitrary_click_down2(CGEventMouseSubtype button, CGPoint point);
|
53
|
-
void mouse_arbitrary_click_down3(CGEventMouseSubtype button, CGPoint point, uint_t sleep_quanta);
|
51
|
+
void mouse_arbitrary_click_down(const CGEventMouseSubtype button);
|
52
|
+
void mouse_arbitrary_click_down2(const CGEventMouseSubtype button, const CGPoint point);
|
53
|
+
void mouse_arbitrary_click_down3(const CGEventMouseSubtype button, const CGPoint point, const uint_t sleep_quanta);
|
54
54
|
|
55
|
-
void mouse_arbitrary_click_up(CGEventMouseSubtype button);
|
56
|
-
void mouse_arbitrary_click_up2(CGEventMouseSubtype button, CGPoint point);
|
55
|
+
void mouse_arbitrary_click_up(const CGEventMouseSubtype button);
|
56
|
+
void mouse_arbitrary_click_up2(const CGEventMouseSubtype button, const CGPoint point);
|
57
57
|
|
58
|
-
void mouse_arbitrary_click(CGEventMouseSubtype button);
|
59
|
-
void mouse_arbitrary_click2(CGEventMouseSubtype button, CGPoint point);
|
60
|
-
void mouse_arbitrary_click3(CGEventMouseSubtype button, CGPoint point, uint_t sleep_quanta);
|
58
|
+
void mouse_arbitrary_click(const CGEventMouseSubtype button);
|
59
|
+
void mouse_arbitrary_click2(const CGEventMouseSubtype button, const CGPoint point);
|
60
|
+
void mouse_arbitrary_click3(const CGEventMouseSubtype button, const CGPoint point, const uint_t sleep_quanta);
|
61
61
|
|
62
|
-
void mouse_middle_click();
|
63
|
-
void mouse_middle_click2(CGPoint point);
|
62
|
+
void mouse_middle_click(void);
|
63
|
+
void mouse_middle_click2(const CGPoint point);
|
64
64
|
|
65
|
-
void mouse_multi_click(size_t num_clicks);
|
66
|
-
void mouse_multi_click2(size_t num_clicks, CGPoint point);
|
65
|
+
void mouse_multi_click(const size_t num_clicks);
|
66
|
+
void mouse_multi_click2(const size_t num_clicks, const CGPoint point);
|
67
67
|
|
68
|
-
void mouse_double_click();
|
69
|
-
void mouse_double_click2(CGPoint point);
|
68
|
+
void mouse_double_click(void);
|
69
|
+
void mouse_double_click2(const CGPoint point);
|
70
70
|
|
71
|
-
void mouse_triple_click();
|
72
|
-
void mouse_triple_click2(CGPoint point);
|
71
|
+
void mouse_triple_click(void);
|
72
|
+
void mouse_triple_click2(const CGPoint point);
|
73
73
|
|
74
|
-
void mouse_smart_magnify();
|
75
|
-
void mouse_smart_magnify2(CGPoint point);
|
74
|
+
void mouse_smart_magnify(void);
|
75
|
+
void mouse_smart_magnify2(const CGPoint point);
|
76
76
|
|
77
|
-
void mouse_swipe(CGSwipeDirection direction);
|
78
|
-
void mouse_swipe2(CGSwipeDirection direction, CGPoint point);
|
79
|
-
void mouse_swipe3(CGSwipeDirection direction, CGPoint point, double duration);
|
77
|
+
void mouse_swipe(const CGSwipeDirection direction);
|
78
|
+
void mouse_swipe2(const CGSwipeDirection direction, const CGPoint point);
|
80
79
|
|
81
|
-
void mouse_pinch(CGPinchDirection direction);
|
82
|
-
void mouse_pinch2(CGPinchDirection direction, double magnification);
|
83
|
-
void mouse_pinch3(CGPinchDirection direction, double magnification, CGPoint point);
|
84
|
-
void mouse_pinch4(CGPinchDirection direction, double magnification, CGPoint point, double duration);
|
80
|
+
void mouse_pinch(const CGPinchDirection direction);
|
81
|
+
void mouse_pinch2(const CGPinchDirection direction, const double magnification);
|
82
|
+
void mouse_pinch3(const CGPinchDirection direction, const double magnification, const CGPoint point);
|
83
|
+
void mouse_pinch4(const CGPinchDirection direction, const double magnification, const CGPoint point, const double duration);
|
85
84
|
|
86
|
-
void mouse_rotate(CGRotateDirection direction, double angle);
|
87
|
-
void mouse_rotate2(CGRotateDirection direction, double angle, CGPoint point);
|
88
|
-
void mouse_rotate3(CGRotateDirection direction, double angle, CGPoint point, double duration);
|
85
|
+
void mouse_rotate(const CGRotateDirection direction, const double angle);
|
86
|
+
void mouse_rotate2(const CGRotateDirection direction, const double angle, const CGPoint point);
|
87
|
+
void mouse_rotate3(const CGRotateDirection direction, const double angle, const CGPoint point, const double duration);
|
data/lib/mouse.rb
CHANGED
@@ -43,6 +43,7 @@ end
|
|
43
43
|
##
|
44
44
|
# Mouse extensions to `Array`
|
45
45
|
class Array
|
46
|
+
|
46
47
|
##
|
47
48
|
# Coerce the first two elements of the receiver into a {CGPoint}
|
48
49
|
#
|
@@ -50,6 +51,7 @@ class Array
|
|
50
51
|
def to_point
|
51
52
|
CGPoint.new self[0], self[1]
|
52
53
|
end
|
54
|
+
|
53
55
|
end
|
54
56
|
|
55
57
|
require 'mouse/version'
|
data/lib/mouse/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.2.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake-compiler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.9.1
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.9.1
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
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axieuWPot4BJzGJbSvHJJa/4t4k3H+EYt2mwKbYIu2PHSU
|
28
|
+
RaJtAjkax8/PgwQeBx2CVdpX+p5IVk0hZ4nH+zd9bZpztQnl6oCakHMOSb3ds0er
|
29
|
+
zLmvMhkYClNmjcgggy+UoXzsOACGwwNe+iyydlJujz3JjLmODpiet0aSZEx4ZSdk
|
30
|
+
0WHcut5WdsOnrIkVkbvgxDUtQclWeulaIRqGkvnajtp2FJdRsi/n8zo3nAfeR6QM
|
31
|
+
vkReJWGG0H8U/JJqYfQBZopYOUMnLJQxN+NA4w==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
34
|
+
dependencies: []
|
55
35
|
description: |
|
56
36
|
mouse is a rich, high level wrapper around OS X CGEvent APIs that allow
|
57
37
|
programmatic manipulation of the mouse cursor.
|
@@ -63,18 +43,18 @@ extensions:
|
|
63
43
|
- ext/mouse/extconf.rb
|
64
44
|
extra_rdoc_files: []
|
65
45
|
files:
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
46
|
+
- ".yardopts"
|
47
|
+
- History.markdown
|
48
|
+
- README.markdown
|
49
|
+
- Rakefile
|
70
50
|
- ext/mouse/CGEventAdditions.h
|
71
51
|
- ext/mouse/IOHIDEventTypes.h
|
72
|
-
- ext/mouse/mouser.h
|
73
52
|
- ext/mouse/extconf.rb
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
- .
|
53
|
+
- ext/mouse/mouse.c
|
54
|
+
- ext/mouse/mouser.c
|
55
|
+
- ext/mouse/mouser.h
|
56
|
+
- lib/mouse.rb
|
57
|
+
- lib/mouse/version.rb
|
78
58
|
- test/helper.rb
|
79
59
|
homepage: http://github.com/AXElements/mouse
|
80
60
|
licenses:
|
@@ -86,17 +66,17 @@ require_paths:
|
|
86
66
|
- lib
|
87
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
68
|
requirements:
|
89
|
-
- -
|
69
|
+
- - ">="
|
90
70
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
71
|
+
version: 2.0.0
|
92
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
73
|
requirements:
|
94
|
-
- -
|
74
|
+
- - ">="
|
95
75
|
- !ruby/object:Gem::Version
|
96
76
|
version: '0'
|
97
77
|
requirements: []
|
98
78
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.4.3
|
100
80
|
signing_key:
|
101
81
|
specification_version: 4
|
102
82
|
summary: A library for automating the mouse
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0ֵ���ӐQ{=��{���7%��٬6����ڴ�&_���2���`V�ǼȦ���D���'&G�9U'y/�Ī����G>����WD�t�{��:S���G6�?�!�3tKq�c�t3m��Jr�5�e[Wjl���ͻ>���o�[ �y4n����!Q멝�:�ک�s���J ��2����:W��Ys�4S����N�:`�����2�>(%m�~�k��rdm��]�,�zNMn)"
|