Sha256: ea39cb54d8952024ae6576b1a8b63f672565908882a498fd62227b8a6dc4f6ae
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Fusuma module Plugin module Sendkey # handle Evdev device class Device def initialize(path:) @evdev = Revdev::EventDevice.new(path) end def path raise 'Keyboard is not found' if @evdev.nil? @path ||= @evdev.file.path end def write_event(event) @evdev.write_input_event(event) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fusuma-plugin-sendkey-0.4.0 | lib/fusuma/plugin/sendkey/device.rb |