Touch input

72 views
Skip to first unread message

timothytoe

unread,
Feb 15, 2009, 5:02:41 PM2/15/09
to phonegap
I'm assuming I have to do touch in Objective C, right? There's not way
to get touch inputs via JavaScript.

Also, the wiki makes it sound as if you can't start in the simulator
unless you get Apple Certification first, is that right? Why is that?
Developers can start programming in Objective C right away without
paying for certification?

Paul Prescod

unread,
Feb 15, 2009, 5:39:27 PM2/15/09
to phon...@googlegroups.com, phonegap
The information that you need certification to use it is obsolete.
With respect to touch: do you mean multitouch? Single touches are
treated (by default) like mouse clicks in a web app.

###This message was lovingly handcrafted on a phone-like device###

Jody Alkema

unread,
Feb 15, 2009, 5:56:02 PM2/15/09
to phon...@googlegroups.com
Out of the box, when using sintaxi's repo and I attempted to build for the simulator I got an error similar to:

CodeSign error: no provisioning profile found with UUID '8D657FB9-CB53-4E3D-AE73-EDC254B7E150'

That experience may reinforce the idea that you need certification for using the simulator. Here is a more generic iphone/PhoneGap.xcodeproj/project.pbxproj that avoids that error:


diff:

iphone builds to simulator no problem after that change for me.

Jody

timothytoe

unread,
Feb 15, 2009, 5:58:12 PM2/15/09
to phonegap
OK. So single-touch is easy. Thanks!

On Feb 15, 2:39 pm, Paul Prescod <pres...@gmail.com> wrote:
> The information that you need certification to use it is obsolete.  
> With respect to touch: do you mean multitouch? Single touches are  
> treated (by default) like mouse clicks in a web app.
>
> ###This message was lovingly handcrafted on a phone-like device###
>

timothytoe

unread,
Feb 15, 2009, 5:58:59 PM2/15/09
to phonegap
Thanks. I'll try it out and I'll clarify in the wiki.

Speaking of that, is the wiki open to all?

On Feb 15, 2:56 pm, Jody Alkema <j...@alkema.ca> wrote:
> Out of the box, when using sintaxi's repo and I attempted to build for the
> simulator I got an error similar to:
> CodeSign error: no provisioning profile found with UUID
> '8D657FB9-CB53-4E3D-AE73-EDC254B7E150'
>
> That experience may reinforce the idea that you need certification for using
> the simulator. Here is a more
> generic iphone/PhoneGap.xcodeproj/project.pbxproj that avoids that error:
>
> http://github.com/harlingen/phonegap/raw/be5e3a17de0afe760c817620df46...
>
> diff:http://github.com/harlingen/phonegap/commit/be5e3a17de0afe760c817620d...
>
> iphone builds to simulator no problem after that change for me.
>
> Jody
>
> On Sun, Feb 15, 2009 at 2:39 PM, Paul Prescod <pres...@gmail.com> wrote:
>
> > The information that you need certification to use it is obsolete.
> > With respect to touch: do you mean multitouch? Single touches are
> > treated (by default) like mouse clicks in a web app.
>
> > ###This message was lovingly handcrafted on a phone-like device###
>

kazoomer

unread,
Feb 15, 2009, 9:37:33 PM2/15/09
to phonegap
Yep, the wiki is open to all :)

Rob Ellis
Phonegap.com
Nitobi.com

Brian LeRoux

unread,
Feb 15, 2009, 11:06:04 PM2/15/09
to phon...@googlegroups.com
You can get multitouch events too.

* click
* load
* touchstart
* touchmove
* touchend
* touchcancel
* gesturestart
* gesturechange
* gestureend
* orientationchange

Check out how we do it in xui: http://xuijs.com/documentation

And here's an example using multitouch to do drag, resize and rotate a
div with multitouch.

http://github.com/brianleroux/xui/blob/331a0d8f0d158e03ffbfd2602c2bb43f4f12998d/example/event/event.js

timothytoe

unread,
Feb 16, 2009, 3:25:18 PM2/16/09
to phonegap
Wow, Brian, that's terrific! I'm mocking up in Adobe AIR under Aptana
right now with jQuery as the library. Planning to port to iPhone in
the next couple of days, and XUI looks terrific!

On Feb 15, 8:06 pm, Brian LeRoux <brian.ler...@nitobi.com> wrote:
> You can get multitouch events too.
>
>     * click
>     * load
>     * touchstart
>     * touchmove
>     * touchend
>     * touchcancel
>     * gesturestart
>     * gesturechange
>     * gestureend
>     * orientationchange
>
> Check out how we do it in xui:http://xuijs.com/documentation
>
> And here's an example using multitouch to do drag, resize and rotate a
> div with multitouch.
>
> http://github.com/brianleroux/xui/blob/331a0d8f0d158e03ffbfd2602c2bb4...

Paul Prescod

unread,
Feb 16, 2009, 3:46:34 PM2/16/09
to phon...@googlegroups.com
So is this doc out of date?

http://phonegap.pbwiki.com/Roadmap

Claims gesture is unavailable on any platform.

Also implies that copy and paste is possible on iPhone but not implemented in PhoneGap yet... ;)

Brian LeRoux

unread,
Feb 16, 2009, 3:53:16 PM2/16/09
to phon...@googlegroups.com
haha --- yeah the plan there was to add multitouch to android but
we've since discovered that it is only possible via a firmware upgrade
which walks outside of our goals. multitouch has/is always available
to webkit on the iphone.

David Orchard

unread,
Feb 16, 2009, 4:00:52 PM2/16/09
to phon...@googlegroups.com
You can get the no provisioning profile error under a bunch of different cases.  One is if you pick a "poor" app name for your profile.  It's best to use just * in the name.  Another one is if you don't have the right code signing identity (in the target info build settings) to your developer code sign.

Cheers,
Dave

Bennie

unread,
Mar 7, 2009, 8:27:51 PM3/7/09
to phonegap
I made the move to XUI today. What finally made me jump? jQuery's
mousedown event (which happens upon mousedown in Safari on the Mac)
doesn't get triggered until mouseup on the iPhone. So I grabbed XUI.
touchstart solved my problems. Thanks!

On Feb 15, 8:06 pm, Brian LeRoux <brian.ler...@nitobi.com> wrote:
> You can get multitouch events too.
>
>     * click
>     * load
>     * touchstart
>     * touchmove
>     * touchend
>     * touchcancel
>     * gesturestart
>     * gesturechange
>     * gestureend
>     * orientationchange
>
> Check out how we do it inxui:http://xuijs.com/documentation
>
> And here's an example using multitouch to do drag, resize and rotate a
> div with multitouch.
>
> http://github.com/brianleroux/xui/blob/331a0d8f0d158e03ffbfd2602c2bb4...
Reply all
Reply to author
Forward
0 new messages