Is there a way to detect multitouch on OS X?
I have a multitouch screen (pqlabs G4) connected to a Mac mini and want to be able to detect multiple touches and movements.
Any thoughts?
Thanks.
Multitouch support on OS X
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Multitouch support on OS X
If the current engine does not support it, you will have to wait for an update or get an external written..
Re: Multitouch support on OS X
Thanks for the reply.
I have the screen manufacturers SDKs (C/C++, Objective-C, Flash/Flex/AIR, Java). Can anyone point me to good introductions on how I could use these to write an external?
Thanks
D.
I have the screen manufacturers SDKs (C/C++, Objective-C, Flash/Flex/AIR, Java). Can anyone point me to good introductions on how I could use these to write an external?
Thanks
D.
-
- Posts: 1
- Joined: Sat Apr 06, 2013 2:09 pm
Re: Multitouch support on OS X
If you want to implement the code for multi-touch programming then you have to define several condition and implement each condition using if---else statements like a sample code for left and right movement could be:
if( right-drag || left-swipe ){
/*run code*/
}
else if( left-drag || right-swipe ){
/* run different code */
}
else if( top-drag || top-swipe ){
/* run other code */
}
else{
/* do nothing */
}
if( right-drag || left-swipe ){
/*run code*/
}
else if( left-drag || right-swipe ){
/* run different code */
}
else if( top-drag || top-swipe ){
/* run other code */
}
else{
/* do nothing */
}
Re: Multitouch support on OS X
Thanks Robert Martin for the hint...
Could you give a more concrete example?
For example, if I have two images on a card, and I have four touches (two on each image) that might be, for example, pinches...
how do I detect the independent actions on the two images?
Thanks
D.
Could you give a more concrete example?
For example, if I have two images on a card, and I have four touches (two on each image) that might be, for example, pinches...
how do I detect the independent actions on the two images?
Thanks
D.