Class: Vigilem::Evdev::Demultiplexer

Inherits:
Core::Demultiplexer
  • Object
show all
Defined in:
lib/vigilem/evdev/demultiplexer.rb

Class Method Summary collapse

Class Method Details

.acquire(outputs = []) ⇒ Demultiplexer

TODO:

move away from singleton and look at the one used by x11

there should only be one demultiplexer for Evdev

Parameters:

  • observers (Array<Array<observer_object, Hash{@see #add_observer}>>)

Returns:



16
17
18
# File 'lib/vigilem/evdev/demultiplexer.rb', line 16

def acquire(outputs=[])
  @demultiplexer ||= new(nil, outputs || [])
end