Sha256: 260f99ea5205aa64fcf0889a72d7f1f6d7a5da709686b5d4dbc7d59a117f2507
Contents?: true
Size: 765 Bytes
Versions: 6
Compression:
Stored size: 765 Bytes
Contents
require 'forwardable' require 'reflex/ext' module Reflex class PointerEvent < Event extend Forwardable def_delegators :first, :id, :types, :mouse?, :touch?, :pen?, :mouse_left?, :left?, :mouse_right?, :right?, :mouse_middle?, :middle?, :action, :down?, :up?, :move?, :cancel?, :stay?, :position, :pos, :x, :y, :modifiers, :drag?, :click_count, :view_index, :time, :prev def pointers() to_enum :each end def inspect() "#<Reflex::PointerEvent id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} drag:#{drag?} click:#{click_count} view:#{view_index} time:#{time.round 2}>" end private def first() self[0] end end# PointerEvent end# Reflex
Version data entries
6 entries across 6 versions & 1 rubygems