summaryrefslogtreecommitdiff
path: root/src/keyVar.h
diff options
context:
space:
mode:
authorTim Redfern <tim@sendak.local>2011-12-19 13:37:11 +0000
committerTim Redfern <tim@sendak.local>2011-12-19 13:37:11 +0000
commitf96ac8a05c915832c0efe5e70264245fca15b33e (patch)
tree366fea81a62199fb5d0521c91fe6e0c9bd2243e0 /src/keyVar.h
linux osx project initial
Diffstat (limited to 'src/keyVar.h')
-rw-r--r--src/keyVar.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/keyVar.h b/src/keyVar.h
new file mode 100644
index 0000000..2717011
--- /dev/null
+++ b/src/keyVar.h
@@ -0,0 +1,29 @@
+/*
+ * keyvar.h
+ * 3dnav
+ *
+ * Created by Tim Redfern on 15/12/2011.
+ * Copyright 2011 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+#include "ofMain.h"
+
+class keyVar{
+
+ public:
+ void set(char _keyInc,char _keyDec,float _val,float _speed,float _accel,float accelTime);
+ void keyPressed(char _key);
+ void keyReleased(char _key);
+ float getVal();
+
+private:
+ char keyInc,keyDec;
+ long timePressed;
+ long timeCalc;
+ int state; //up-down-off
+ float val;
+ float speed;
+ float accel;
+ float accelTime;
+}; \ No newline at end of file