From 8662dfb7361c7ba9291a5e2bf9ebd55cb41932ba Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 May 2014 22:09:16 -0400 Subject: ignore files that should be ignored --- .gitignore | 4 +++ .settings/org.eclipse.jdt.core.prefs | 4 --- src/us/minak/SketchpadView.java~ | 50 ------------------------------------ 3 files changed, 4 insertions(+), 54 deletions(-) delete mode 100644 .settings/org.eclipse.jdt.core.prefs delete mode 100644 src/us/minak/SketchpadView.java~ diff --git a/.gitignore b/.gitignore index a22392a..f708b53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ +/.settings /bin /gen + +*~ +.nfs* diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index b080d2d..0000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/src/us/minak/SketchpadView.java~ b/src/us/minak/SketchpadView.java~ deleted file mode 100644 index 55d69fd..0000000 --- a/src/us/minak/SketchpadView.java~ +++ /dev/null @@ -1,50 +0,0 @@ -import java.util.List; - -import android.gesture.Gesture; -import android.gesture.GestureLibraries; -import android.gesture.GestureLibrary; -import android.gesture.GestureOverlayView; -import android.gesture.GestureOverlayView.OnGesturePerformedListener; -import android.gesture.Prediction; - -public class SketchpadView extends GestureOverlayView implements OnGesturePerformedListener{ - //Setting score thresh hold - private static final double score_threshold = 3.0; - //loads gesture library - private final GestureLibrary gestureLib; - //used to capture drawn gestures - private onGestureRecognizedListener gestureRecognizer; - - public SketchpadView (){ - //not sure what to add here - } - - public void setOnGestureRecognizedListener(OnGestureRecognizedListener onGestureRecognizedListener) { - gestureRecognizer = onGestureRecognizedListener; - } - - @Override - public void onGesturePerformed(GestureOverlayView view, Gesture gesture){ - //create list of predicted characters to be entered - List predictions = gestureLib.recognize(gesture); - Prediction bestPrediction = null; - //if we have a prediction - if(!predictions.isEmpty()){ - //I believe that this just blidnly adds a predicted character without any checks - //we need to see if there is a way to actual get the best prediction - //if this lists them based on the best, then fuck me and ignore this/delete this - bestPrediction = predictions.get(0); - } - //if we have a gesture and a decent prediction - if(gestureRecognizer != null && bestPrediction != null){ - //if the prediction is good enough - if(bestPrediction.score > score_threshold){ - //we recognize it - gestureRecognizer.gestureRecognized(bestPrediction.name); - }else{ - //why? - clear(false); - } - } - } -} -- cgit v1.2.3-54-g00ecf