Sha256: 590fd7ef2d1c3f8b2c264ba13fbf69ccfb1c16d0a0a38ae7ae8ab1f7e09ddf1c
Contents?: true
Size: 1.22 KB
Versions: 16
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true module Vedeu # Classes within the Input namespace handle various aspects of # user input. # module Input end # Input # :nocov: # See {file:docs/events/system.md#\_keypress_} Vedeu.bind(:_keypress_) do |key, name| Vedeu.timer('Executing keypress') do Vedeu.add_keypress(key) Vedeu.keypress(key, name) end end # See {file:docs/events/drb.md#\_drb_input_} Vedeu.bind(:_drb_input_) do |data, type| Vedeu.log(type: :drb, message: "Sending input (#{type})") if type == :command Vedeu.trigger(:_command_, data) else Vedeu.trigger(:_keypress_, data) end end # See {file:docs/events/system.md#\_command_} Vedeu.bind(:_command_) do |command| Vedeu.timer('Executing command') do Vedeu.add_command(command) Vedeu.trigger(:command, command) end end # :nocov: end # Vedeu require 'vedeu/input/raw' require 'vedeu/input/capture' require 'vedeu/input/dsl' require 'vedeu/input/keys' require 'vedeu/input/key' require 'vedeu/input/keymap' require 'vedeu/input/mapper' require 'vedeu/input/mouse' require 'vedeu/input/read' require 'vedeu/input/repository' require 'vedeu/input/store' require 'vedeu/input/translator'
Version data entries
16 entries across 16 versions & 1 rubygems