Class: MG::Events::Touch

Inherits:
Object
  • Object
show all
Defined in:
doc/API_reference.rb

Overview

the Scene#on_touch_begin method.

Instance Attribute Summary collapse

Instance Attribute Details

#locationPoint (readonly)

Returns the current location of the touch event.

Returns:

  • (Point)

    the current location of the touch event.



526
527
528
# File 'doc/API_reference.rb', line 526

def location
  @location
end

#start_locationPoint (readonly)

Returns the start_location of the touch event.

Returns:

  • (Point)

    the start_location of the touch event.



529
530
531
# File 'doc/API_reference.rb', line 529

def start_location
  @start_location
end