preble / glgesturerecognizer Goto Github PK
View Code? Open in Web Editor NEWSimple Objective-C gesture recognizer for use on the iPhone
Home Page: http://giraffelab.com/code/GLGestureRecognizer/
Simple Objective-C gesture recognizer for use on the iPhone
Home Page: http://giraffelab.com/code/GLGestureRecognizer/
caret and pigtail does not recognize
this is my json data.
"pigtail": [
[0.58, 0.00], [0.53, -0.02], [0.32, -0.08], [0.02, -0.04], [-0.16, 0.07], [-0.16, 0.20], [-0.09, 0.28], [-0.02, 0.31], [-0.00, 0.29], [0.03, 0.20], [0.06, 0.01], [0.05, -0.19], [-0.00, -0.25], [-0.15, -0.30], [-0.38, -0.29], [-0.64, -0.20]
],
"caret": [
[0.68, 0.00], [0.59, 0.04], [-0.03, 0.43], [-0.21, 0.54], [-0.26, 0.55], [-0.23, 0.37], [-0.18, 0.19], [-0.17, 0.11], [-0.14, 0.02], [-0.11, -0.07], [-0.05, -0.17], [-0.02, -0.24], [0.01, -0.34], [0.02, -0.41], [0.04, -0.48], [0.04, -0.53]
],
I tried to compile the project with TouchJSON but I get following errors:
/Users/asdf/Desktop/preble-GLGestureRecognizer-8bc9942-1/Classes/GLGestureRecognizer.m:33:0
/Users/asdf/Desktop/preble-GLGestureRecognizer-8bc9942-1/Classes/GLGestureRecognizer.m:33: error: synthesized properties 'touchPoints' and 'input' both claim ivar 'input'
/Users/asdf/Desktop/preble-GLGestureRecognizer-8bc9942-1/Classes/GLGestureRecognizer.m:33:0
/Users/asdf/Desktop/preble-GLGestureRecognizer-8bc9942-1/Classes/GLGestureRecognizer.m:33: error: previous property declaration of 'input' was here
@synthesize input, templates, resampledPoints, touchPoints=input; <- "input" is referenced twice.
First, thanks for making that cool stuff available... When I download you sources, xcode is missing the Classes/TouchJSON folder....
Thanks
Florian
Occasionally, rapid successive clicks will generate an empty result (See this log):
2010-10-11 11:09:59.348 Gestures[11547:307] firstPointAngle=0.00
2010-10-11 11:09:59.358 Gestures[11547:307] line => nan
2010-10-11 11:09:59.360 Gestures[11547:307] circle => nan
2010-10-11 11:09:59.368 Gestures[11547:307] Best: (null) with inf
2010-10-11 11:09:59.372 Gestures[11547:307] Read:
"template_name": [ [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], [nan, nan], ],
2010-10-11 11:09:59.383 Gestures[11547:307] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSPlaceholderString initWithString:]: nil argument'
I added a check to bestTemplateName to fix this issue for me:
NSString *outName = nil;
if(bestTemplateName){
outName = [[NSString alloc] initWithString:bestTemplateName];
}
[pool release];
return [outName autorelease];
Thanks for this source!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.