Class: Vigilem::Assembly::DOMKeyboard
- Inherits:
-
Core::Device
- Object
- Core::Device
- Vigilem::Assembly::DOMKeyboard
- Defined in:
- lib/vigilem/assembly/dom_keyboard.rb
Overview
provides an entry point to DOM events
Instance Method Summary collapse
-
#initialize ⇒ DOMKeyboard
constructor
imports the DOMAdapter.
Constructor Details
#initialize ⇒ DOMKeyboard
imports the DOMAdapter
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# 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 |