xinput_wrapper 0.1.0 → 0.1.1
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/lib/xinput_wrapper.rb +6 -2
- metadata +1 -1
- 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: c3903d1dfa16bf7e743aee402009f44e536e1da8
|
4
|
+
data.tar.gz: 69887fc65d3f95a6142ff25f81d8baeba5b87861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 374014c88dedc0eeea697e325cf32964fd50e8fb3597633e21e12fd9a51b6ab5e2e211b7499f74523c8268d862bd59f43d04be1c4f958aface14fb80528269ad
|
7
|
+
data.tar.gz: d3d31a90923f35d51a58909b02cff43d6dc6320bc40402d079179b716c42f3f1c3c00d38e315506f50f50f764b5c449abc6836baf7698dedbd12fb51d90cdc41
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/xinput_wrapper.rb
CHANGED
@@ -10,7 +10,7 @@ require 'secret_knock'
|
|
10
10
|
class XInputWrapper
|
11
11
|
|
12
12
|
def initialize(device: '3', host: 'sps', port: '59000',
|
13
|
-
topic: 'input/keyboard', verbose: true, lookup:
|
13
|
+
topic: 'input/keyboard', verbose: true, lookup: {})
|
14
14
|
|
15
15
|
@lookup = {
|
16
16
|
37 => :control,
|
@@ -29,7 +29,11 @@ class XInputWrapper
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def message(msg)
|
32
|
+
|
33
|
+
puts ':: ' + msg.inspect if @verbose
|
34
|
+
|
32
35
|
return if msg.strip.empty?
|
36
|
+
|
33
37
|
@sps.notice "%s: %s" % [@topic, msg]
|
34
38
|
end
|
35
39
|
|
@@ -68,4 +72,4 @@ class XInputWrapper
|
|
68
72
|
end
|
69
73
|
end
|
70
74
|
end
|
71
|
-
end
|
75
|
+
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|