xinput_wrapper 0.4.0 → 0.4.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 +4 -2
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a65e18160d628995917a2edbe88191d9af2463d392e323d73be0c9d18125bb1e
|
4
|
+
data.tar.gz: a64ca44e47e455dc7e164ad3a07a0d45b9f0287ef5edc3d8ea718110af589755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5dbaa2fbe33f068c910f5e3b81585541487b0cca4dd8fd84599705754010727c10024e8be94de12694a576e1c794ebd9350336782c404e2f9b9694753ac81ff
|
7
|
+
data.tar.gz: 3a438de9f271059e494d7d39ffb1d9ed6d51247e7795033be4534aa9596da1f79719c7f92d30a3b4d9fda0bfe38cbd6a0140689b48fdf9828bcd7ddd27496abb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/xinput_wrapper.rb
CHANGED
@@ -28,7 +28,7 @@ class XInputWrapper
|
|
28
28
|
31=>:i, 32=>:o, 33=>:p, 34=>:"[", 35=>:"]", 36=>:enter, 38=>:a, 39=>:s,
|
29
29
|
40=>:d, 41=>:f, 42=>:g, 43=>:h, 44=>:j, 45=>:k, 46=>:l, 47=>:";",
|
30
30
|
48=>:"'", 49=>nil, 52=>:z, 53=>:x, 54=>:c, 55=>:v, 56=>:b, 57=>:n,
|
31
|
-
58=>:m, 59=>:",", 60=>:".", 61=>:/, 65=>:
|
31
|
+
58=>:m, 59=>:",", 60=>:".", 61=>:/, 65=>:space,
|
32
32
|
9 => :escape,
|
33
33
|
66 => :capslock,
|
34
34
|
67 => :f1,
|
@@ -116,7 +116,9 @@ class XInputWrapper
|
|
116
116
|
puts key.to_s + ' key presssed' if @verbose
|
117
117
|
name = "on_#{key}_key".to_sym
|
118
118
|
method(name).call if self.protected_methods.include? name
|
119
|
-
|
119
|
+
|
120
|
+
keystring = ((key.length > 1 or key == ' ') ? "{%s}" % key : key)
|
121
|
+
on_key_press keystring, keycode
|
120
122
|
end
|
121
123
|
|
122
124
|
else
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|