Skip to first unread message

MadisonThacker

unread,
Sep 10, 2014, 2:08:32 PM9/10/14
to mitappinv...@googlegroups.com
Trying to program phone keypad for texting, e.g. on a phone pad sometimes a number key is also used for letters [1 ABC] [2 DEF] etc. I plan to test whether or not .touch, .up, and .down might be a way to distinguish which letter is intended.

Taifun

unread,
Sep 10, 2014, 3:54:26 PM9/10/14
to mitappinv...@googlegroups.com
see the documentation http://ai2.appinventor.mit.edu/reference/components/animation.html#Canvas

TouchDown(number x, number y)
When the user begins touching the canvas (places finger on canvas and leaves it there): provides the (x,y) position of the touch, relative to the upper left of the canvas
TouchUp(number x, number y)
When the user stops touching the canvas (lifts finger after a TouchDown event): provides the (x,y) position of the touch, relative to the upper left of the canvas
Touched(number x, number y, boolean touchedSprite)
When the user touches the canvas and then immediately lifts finger: provides the (x,y) position of the touch, relative to the upper left of the canvas. TouchedSprite is true if the same touch also touched a sprite, and false otherwise.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Reply all
Reply to author
Forward
0 new messages