xinput_wrapper 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 8b5472a4092c06710062e3b921d0ab6bb314fb2157a5fda18ee6541ed39f82fa
4
- data.tar.gz: 92ac6472c9e09a899340c910139144286326489b292e78cae1d6cfab710ff4ad
3
+ metadata.gz: bfcd8783533ef00a1af9570118f69bf191a6dd70f19307f10f1434d762401dbc
4
+ data.tar.gz: 72608043e08daebced96533173d91b8f06f764f01dedaafa7b3fa09a4c3db93a
5
5
  SHA512:
6
- metadata.gz: 8eda8bb4a013870c31df8f93f0ff47d0701c892c286856b1bb5f01faa9f308231ad4e216357f73c96cb810d572cc6bfe71911647a99c369e6ed201d05c022e6d
7
- data.tar.gz: cd7a2659e9179e627fac0bd69bfa10bb4fa0699100f276a366e1df40b70783402deec412181010822da17c78c801c52ec6545ba97333924bf967050745d55278
6
+ metadata.gz: 7581942d3403f3b775da756468fa90534a697fdbe3ccb1486dd1377cb1d0c95be9d68c5b1366e486ca86da21649e39cdb8a8e26e7c347c95e195d431aa73a53b
7
+ data.tar.gz: 9d3ab0efc14c841313586944abbd8c7742dcf5e8f4ed6661ecb276779b174c31d5b28e19b7f7f9c0f3d0673956c70eaffaf8aacad6db14181993d8fd22863bc9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -97,7 +97,7 @@ class XInputWrapper
97
97
  if key then
98
98
  puts key.to_s + ' key presssed' if @verbose
99
99
  name = "on_#{key}_key".to_sym
100
- method(name).call if self.respond_to? name
100
+ method(name).call if self.protected_methods.include? name
101
101
  end
102
102
 
103
103
  end
@@ -106,7 +106,9 @@ class XInputWrapper
106
106
 
107
107
  protected
108
108
 
109
- def on_control_key() end
109
+ def on_control_key()
110
+ puts 'ctrl key pressed'
111
+ end
110
112
  def on_key_press(keycode) end
111
113
 
112
114
  def on_shift_key() end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xinput_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file