uinput-keyboard 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uinput/keyboard.rb +6 -1
- data/lib/uinput/keyboard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66646a2407860656bcf89b8ae26386c6cdf6df17
|
4
|
+
data.tar.gz: 528b2aa25eb8decf402b516e64e1b9678cec6f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c86e9fc3e12b8b204442c1a9252d41e780c5e083b3ba8e0fd8f2382f1db95b32da00733bde406834104e1b5a8997bbe1f43f7453bea464dea34b262c707e80
|
7
|
+
data.tar.gz: ca8133c2b8405330430bc33ddefd5c1fef2ab55a2b47527e7832075c02983a630c6bfadce072623f56073bfc28d66f13ba1d119e4eea68a5f618f48467121a03
|
data/lib/uinput/keyboard.rb
CHANGED
@@ -39,7 +39,12 @@ module Uinput
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def type(string)
|
42
|
-
|
42
|
+
# prevent dropped key events (b/c of evdev buffer overflow?) by sending
|
43
|
+
# out the event chain in chunks rather than in one piece
|
44
|
+
string_to_symbols(string).each_slice(8) do |symbols|
|
45
|
+
symbols.each{ |symbol| tap(symbol) }
|
46
|
+
sleep 0.01 # time to breath
|
47
|
+
end
|
43
48
|
end
|
44
49
|
|
45
50
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uinput-keyboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Aue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|