mouse 4.0.2 → 4.0.3
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 +0 -0
- data.tar.gz.sig +0 -0
- data/History.markdown +5 -0
- data/ext/mouse/mouse.c +12 -12
- data/lib/mouse/version.rb +1 -1
- metadata +14 -14
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5691243a233bc8486a1cb5130f43720e81504623
|
4
|
+
data.tar.gz: 1c81e0a01ae4bc5e1059fc003f57f3da1a98215d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b2759727303c80e86087a4077e56c11a3883039102a039b09f6ec589590e4d231e5d4419a45b11b4e2b2a6463d3512ccdbe0a6aef2851724517f4c94a525389
|
7
|
+
data.tar.gz: 5c6b786ebb1c7f426f660a66c344fde3327d52a393f953899420ebd5589982c243ba604ecda737d1938ce1160b0cd6ff94e66ea7470cbd361e656fb9e0522dd9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.markdown
CHANGED
data/ext/mouse/mouse.c
CHANGED
@@ -11,10 +11,10 @@ static VALUE rb_mMouse, rb_cCGPoint;
|
|
11
11
|
static ID sel_x, sel_y, sel_to_point, sel_new;
|
12
12
|
|
13
13
|
static VALUE sym_pixel, sym_line,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
sym_up, sym_down, sym_left, sym_right,
|
15
|
+
sym_zoom, sym_unzoom, sym_expand, sym_contract,
|
16
|
+
sym_cw, sym_clockwise, sym_clock_wise,
|
17
|
+
sym_ccw, sym_counter_clockwise, sym_counter_clock_wise;
|
18
18
|
|
19
19
|
#define CURRENT_POSITION rb_mouse_wrap_point(mouse_current_position())
|
20
20
|
|
@@ -147,7 +147,7 @@ rb_mouse_scroll(const int argc, VALUE* const argv, UNUSED const VALUE self)
|
|
147
147
|
|
148
148
|
} else {
|
149
149
|
const VALUE input_units = argv[1];
|
150
|
-
CGScrollEventUnit units;
|
150
|
+
CGScrollEventUnit units = kCGScrollEventUnitLine;
|
151
151
|
|
152
152
|
if (input_units == sym_pixel)
|
153
153
|
units = kCGScrollEventUnitPixel;
|
@@ -156,7 +156,7 @@ rb_mouse_scroll(const int argc, VALUE* const argv, UNUSED const VALUE self)
|
|
156
156
|
else
|
157
157
|
rb_raise(rb_eArgError,
|
158
158
|
"unknown units `%s'",
|
159
|
-
rb_id2name(input_units));
|
159
|
+
rb_id2name(SYM2ID(input_units)));
|
160
160
|
|
161
161
|
if (argc == 2)
|
162
162
|
mouse_scroll2(amt, units);
|
@@ -210,7 +210,7 @@ rb_mouse_horizontal_scroll(const int argc,
|
|
210
210
|
|
211
211
|
} else {
|
212
212
|
const VALUE input_units = argv[1];
|
213
|
-
CGScrollEventUnit units;
|
213
|
+
CGScrollEventUnit units = kCGScrollEventUnitLine;
|
214
214
|
|
215
215
|
if (input_units == sym_pixel)
|
216
216
|
units = kCGScrollEventUnitPixel;
|
@@ -219,7 +219,7 @@ rb_mouse_horizontal_scroll(const int argc,
|
|
219
219
|
else
|
220
220
|
rb_raise(rb_eArgError,
|
221
221
|
"unknown units `%s'",
|
222
|
-
rb_id2name(input_units));
|
222
|
+
rb_id2name(SYM2ID(input_units)));
|
223
223
|
|
224
224
|
if (argc == 2)
|
225
225
|
mouse_horizontal_scroll2(amt, units);
|
@@ -774,7 +774,7 @@ rb_mouse_swipe(const int argc, VALUE* const argv, UNUSED const VALUE self)
|
|
774
774
|
rb_raise(rb_eArgError, "wrong number of arguments (0 for 1+)");
|
775
775
|
|
776
776
|
const VALUE direction_input = argv[0];
|
777
|
-
CGSwipeDirection direction;
|
777
|
+
CGSwipeDirection direction = kCGSwipeDirectionNone;
|
778
778
|
if (direction_input == sym_up)
|
779
779
|
direction = kCGSwipeDirectionUp;
|
780
780
|
else if (direction_input == sym_down)
|
@@ -829,12 +829,12 @@ rb_mouse_swipe(const int argc, VALUE* const argv, UNUSED const VALUE self)
|
|
829
829
|
* @overload pinch(direction, magnification, point)
|
830
830
|
* @param direction [Symbol]
|
831
831
|
* @param magnification [Float]
|
832
|
-
* @param point [CGPoint]
|
832
|
+
* @param point [CGPoint,#to_point]
|
833
833
|
* @return [CGPoint]
|
834
834
|
* @overload pinch(direction, magnification, point, duration)
|
835
835
|
* @param direction [Symbol]
|
836
836
|
* @param magnification [Float]
|
837
|
-
* @param point [CGPoint]
|
837
|
+
* @param point [CGPoint,#to_point]
|
838
838
|
* @param duration [Float]
|
839
839
|
* @return [CGPoint]
|
840
840
|
*/
|
@@ -923,7 +923,7 @@ rb_mouse_rotate(const int argc, VALUE* const argv, UNUSED const VALUE self)
|
|
923
923
|
|
924
924
|
|
925
925
|
const VALUE input_dir = argv[0];
|
926
|
-
CGRotateDirection direction;
|
926
|
+
CGRotateDirection direction = kCGRotateNone;
|
927
927
|
|
928
928
|
if (input_dir == sym_cw ||
|
929
929
|
input_dir == sym_clockwise ||
|
data/lib/mouse/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rada
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
0WHcut5WdsOnrIkVkbvgxDUtQclWeulaIRqGkvnajtp2FJdRsi/n8zo3nAfeR6QM
|
31
31
|
vkReJWGG0H8U/JJqYfQBZopYOUMnLJQxN+NA4w==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-02-
|
33
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
34
34
|
dependencies: []
|
35
35
|
description: |
|
36
36
|
mouse is a rich, high level wrapper around OS X CGEvent APIs that allow
|
@@ -43,18 +43,18 @@ extensions:
|
|
43
43
|
- ext/mouse/extconf.rb
|
44
44
|
extra_rdoc_files: []
|
45
45
|
files:
|
46
|
-
-
|
47
|
-
-
|
48
|
-
- README.markdown
|
49
|
-
- Rakefile
|
50
|
-
- ext/mouse/CGEventAdditions.h
|
51
|
-
- ext/mouse/IOHIDEventTypes.h
|
52
|
-
- ext/mouse/extconf.rb
|
46
|
+
- lib/mouse/version.rb
|
47
|
+
- lib/mouse.rb
|
53
48
|
- ext/mouse/mouse.c
|
54
49
|
- ext/mouse/mouser.c
|
50
|
+
- ext/mouse/CGEventAdditions.h
|
51
|
+
- ext/mouse/IOHIDEventTypes.h
|
55
52
|
- ext/mouse/mouser.h
|
56
|
-
-
|
57
|
-
-
|
53
|
+
- ext/mouse/extconf.rb
|
54
|
+
- Rakefile
|
55
|
+
- README.markdown
|
56
|
+
- History.markdown
|
57
|
+
- .yardopts
|
58
58
|
- test/helper.rb
|
59
59
|
homepage: http://github.com/AXElements/mouse
|
60
60
|
licenses:
|
@@ -66,17 +66,17 @@ require_paths:
|
|
66
66
|
- lib
|
67
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - '>='
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: 2.0.0
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.0.14
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: A library for automating the mouse
|
metadata.gz.sig
CHANGED
Binary file
|