class Vigilem::Assembly::DOMKeyboard

provides an entry point to DOM events

Public Class Methods

new() click to toggle source

imports the DOMAdapter

Calls superclass method
# File lib/vigilem/assembly/dom_keyboard.rb, line 15
def initialize
  
  on_os(/win32|mingw32|mswin|cygwin/) do
    require 'vigilem/win32_api/dom'
    
    import Win32API::DOM::Adapter.new
  end
  
  # the handler checks to see if it can exist
  on_input_system(/evdev/) do
    require 'vigilem/evdev/dom'
                                  # @todo identify the 'main' keyboard
    import Evdev::DOM::Adapter.new(Evdev::Device.name_grep(/keyboard/).first)
  end
  
  super()
end