Sha256: e899a1e25d58ae030a4a2d2055a97b7e85fb5fc7619f1c56b76c0dd324ab9468
Contents?: true
Size: 458 Bytes
Versions: 8
Compression:
Stored size: 458 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 "Device path 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
8 entries across 8 versions & 1 rubygems