Method: Neotrellis::Keypad#sync
- Defined in:
- lib/neotrellis/keypad.rb
#sync ⇒ Object
Trigger the callback for each event waiting to be processed. This method will be automatically called when the interruption mode is enabled.
126 127 128 129 130 131 132 133 |
# File 'lib/neotrellis/keypad.rb', line 126 def sync count = count_events() if count >0 read_events(count).each do |event| trigger_event(event) end end end |