xinput_wrapperplus 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/xinput_wrapperplus.rb +5 -4
- data.tar.gz.sig +2 -3
- metadata +11 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 91c9092b58275c23427c5cd5bfac4e81e54a1ec47bb8c64a1cabe6a8ecf5d804
|
4
|
+
data.tar.gz: 708883cdf9983f0be1d7c39ba253a17460d593b475ec2f253234a884a4c32647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e8cdc3d622d876fff697f4333cd8e2528913273d378bafdb66642e43153299db17eb8b589c1aa61661670ca12b283ef964118a54df6379790f43f6014929f4b
|
7
|
+
data.tar.gz: be802787718245967459f5e854540317788479bbf1118872bdb8a5471c7424094e6f4364367049311494ace1844daffc591d758a4ae3eb554a005d99ba604457
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/xinput_wrapperplus.rb
CHANGED
@@ -11,15 +11,16 @@ class XInputWrapperPlus < XInputWrapper
|
|
11
11
|
|
12
12
|
def initialize(device: '3', host: 'sps', port: '59000',
|
13
13
|
topic: 'input/keyboard', verbose: true, lookup: {},
|
14
|
-
debug: false)
|
14
|
+
debug: false, capture_all: false)
|
15
15
|
|
16
16
|
super(device: device, verbose: verbose, lookup: lookup,
|
17
17
|
debug: debug)
|
18
|
-
@topic = topic
|
18
|
+
@topic, @capture_all = topic, capture_all
|
19
19
|
@sps = SPSPub.new host: host, port: port
|
20
20
|
@sk = SecretKnock.new short_delay: 0.25, long_delay: 0.5,
|
21
21
|
external: self, verbose: verbose, debug: debug
|
22
22
|
@sk.detect timeout: 0.7
|
23
|
+
|
23
24
|
end
|
24
25
|
|
25
26
|
|
@@ -44,8 +45,9 @@ class XInputWrapperPlus < XInputWrapper
|
|
44
45
|
@sk.knock
|
45
46
|
end
|
46
47
|
|
47
|
-
def on_key_press(keycode)
|
48
|
+
def on_key_press(key, keycode)
|
48
49
|
puts 'inside on_key_press' if @debug
|
50
|
+
message key.to_s if @capture_all
|
49
51
|
@sk.reset if @lookup[keycode] != :control
|
50
52
|
end
|
51
53
|
|
@@ -53,4 +55,3 @@ class XInputWrapperPlus < XInputWrapper
|
|
53
55
|
message 'super key pressed'
|
54
56
|
end
|
55
57
|
end
|
56
|
-
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
��rGv�P?�Q�'D�� ��$
|
1
|
+
��)X+[%|!(>/�\½�%P��ۙ٧��N%و��ϺH�)��)�{g9�:n��0�>L�O��B�m�x�����<��87�d���l��1�u\X�Ex��$(��ű5Z%��!9#��+��_��1��?��ɄK��T�0t��V�^Dd��|��_�K�L>�$/�y�v�q�H���~>�_��9�z���g�ɺMqrRE6�:u*�<#2��KnR����r���y�L7�3?
|
2
|
+
lk���
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xinput_wrapperplus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
SK2jOkRNlfF9rY8O76O35JOdWJTBmi/UxMmyH0ISaWkk7/5E8Q1ZElsb7WR/Nlpk
|
31
31
|
DHs=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sps-pub
|
@@ -76,22 +76,22 @@ dependencies:
|
|
76
76
|
name: xinput_wrapper
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0.2'
|
82
79
|
- - ">="
|
83
80
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
81
|
+
version: 0.3.0
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0.3'
|
85
85
|
type: :runtime
|
86
86
|
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- - "~>"
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0.2'
|
92
89
|
- - ">="
|
93
90
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
91
|
+
version: 0.3.0
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0.3'
|
95
95
|
description:
|
96
96
|
email: james@jamesrobertson.eu
|
97
97
|
executables: []
|
@@ -118,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.6.13
|
121
|
+
rubygems_version: 3.0.1
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: A wrapper for the Linux utility xinput. Publishes an SPS message whenever
|
metadata.gz.sig
CHANGED
Binary file
|