aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-12-18 21:07:33 +0000
committerThomas White <taw27@cam.ac.uk>2008-12-18 21:09:46 +0000
commita1eaaf9abc872adc2485a2d93c653ee5c9ae3276 (patch)
tree53ac958b3a4f6fe50ac73f458b335b71c8c467fb /src/types.h
parent8b0f6945202ea891b87873688dbf9b4990cac44b (diff)
Disable Freerunner accelerometer threshold while running
This sets the accelerometer threshold value to zero, making the cow much more responsive. It gets reset to its original value afterwards, but only if it hasn't changed from zero meanwhile. Signed-off-by: Thomas White <taw27@cam.ac.uk>
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/types.h b/src/types.h
index 7870081..8dce08e 100644
--- a/src/types.h
+++ b/src/types.h
@@ -40,20 +40,21 @@ typedef enum {
typedef struct {
int fd;
-
+
AccelType type;
-
+
int x;
int y;
int z;
-
+
/* Temporary values for use during reading */
int lx;
int ly;
int lz;
-
+
/* Current state (driver dependent) */
int state;
+ signed int old_threshold;
} AccelHandle;
@@ -62,17 +63,16 @@ typedef struct {
long moo_len;
long moo_pos;
Sint16 *moo_buf;
-
+
unsigned int mootex;
-
+
} AudioContext;
typedef struct {
GtkWidget *window;
GtkWidget *cow;
-
+
} MainWindow;
#endif /* TYPES_H */
-