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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a0a3ef8a0e4df95d54f4a2867b60045e03b88c7
4
- data.tar.gz: f6cdfe99d17f3e60bb50d53cc665116a247f2d72
3
+ metadata.gz: 66646a2407860656bcf89b8ae26386c6cdf6df17
4
+ data.tar.gz: 528b2aa25eb8decf402b516e64e1b9678cec6f64
5
5
  SHA512:
6
- metadata.gz: 1e73ca04e07a58e44b8d9265d84e477642bcba85980361e55bf7d011a4b71d272c5673d06ab4dcf880efde8269efe4bb9f7ef257e5d8c96f6ba0f76d2f00b2a9
7
- data.tar.gz: 76b99e4927c48a845c61a78834b5468850bf79deac42bb4a888a85f7e53ea08b3cccb0bee716c75d86d74636224f6b5596401c3ca8955021aef90c91c6b01e71
6
+ metadata.gz: a8c86e9fc3e12b8b204442c1a9252d41e780c5e083b3ba8e0fd8f2382f1db95b32da00733bde406834104e1b5a8997bbe1f43f7453bea464dea34b262c707e80
7
+ data.tar.gz: ca8133c2b8405330430bc33ddefd5c1fef2ab55a2b47527e7832075c02983a630c6bfadce072623f56073bfc28d66f13ba1d119e4eea68a5f618f48467121a03
@@ -39,7 +39,12 @@ module Uinput
39
39
  end
40
40
 
41
41
  def type(string)
42
- string_to_symbols(string).each{ |symbols| tap(*symbols) }
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
@@ -1,3 +1,3 @@
1
1
  module Uinput
2
- Keyboard_VERSION = "0.1.1"
2
+ Keyboard_VERSION = "0.1.2"
3
3
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2015-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler