Class: Gosu::Touch

Inherits:
Struct
  • Object
show all
Defined in:
lib/gosu_android/input/input.rb

Overview

Struct that saves information about a touch on the surface of a multi- touch device.

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



33
34
35
# File 'lib/gosu_android/input/input.rb', line 33

def id
  @id
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



33
34
35
# File 'lib/gosu_android/input/input.rb', line 33

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



33
34
35
# File 'lib/gosu_android/input/input.rb', line 33

def y
  @y
end