Class: MG::Events::Touch

Inherits:
Object
  • Object
show all
Defined in:
motion-game

Overview

This class represents a touch event receive from the device, usually from the Scene#on_touch_begin method.

Properties (collapse)

Instance Attribute Details

- (Point) location (readonly)

Returns the current location of the touch event.

Returns:

  • (Point)

    the current location of the touch event.



167
168
169
# File 'motion-game', line 167

def location
  @location
end