Sha256: c32c720bae7000e8d4dbc406a14a16f129d53b7b0e003afcfea26f991eb2c86e
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
# -*- coding: utf-8 -*- 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, :click_count, :drag?, :time, :prev def pointers() to_enum :each end def inspect() "#<Reflex::PointerEvent id:#{id} #{type} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} click:#{click_count} drag:#{drag?} time:#{time.round 2}>" end private def first() self[0] end end# PointerEvent end# Reflex
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.25 | lib/reflex/pointer_event.rb |