14.09.2015 Views

Touch

Lectures 13 and 14 – Touch

Lectures 13 and 14 – Touch

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Which pointer?<br />

• Multitouch means MotionEvents will<br />

contain multiple ‘pointers’<br />

• getPointerCount() returns the number of<br />

pointers<br />

• getX()/getY() can both take the index of a<br />

pointer in the event to return the x/y for<br />

Will now demo this on the iPad — go show code

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!