GPM::Config
Inherits Struct / Value / Object
Constructors
new(event_mask : Types = Types::All, default_mask : Types = (Types::MOVE | Types::HARD), min_mod : UInt16 = 0, max_mod : UInt16 = 65535, pid : Int32 = Process.pid.to_i32, vc : Int32 = ((File.readlink("/proc/#{Process.pid}/fd/0")).match(/tty(\d+)/)).try() do |__arg0| __arg0[1].to_i end || 0)
SourceInstance methods
clone
Sourcecopy_with(event_mask _event_mask = @event_mask, default_mask _default_mask = @default_mask, min_mod _min_mod = @min_mod, max_mod _max_mod = @max_mod, pid _pid = @pid, vc _vc = @vc)
Sourcedefault_mask
event_mask
max_mod
min_mod
pid
vc
TODO: for vc: should also check for /dev/input/ (if tty not found? And anyway, how?)