simple_wiimote 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/simple_wiimote.rb +1 -1
  2. metadata +1 -1
@@ -46,7 +46,7 @@ class SimpleWiimote
46
46
  if @wiimote.buttons > 0 then
47
47
  if @wiimote.buttons != old_btn then
48
48
  r = @events[@wiimote.buttons]
49
- r.call if r
49
+ (old_btn = 0; r.call; sleep 0.2) if r
50
50
  old_btn = @wiimote.buttons
51
51
 
52
52
  else
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: simple_wiimote
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson