aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/types.h b/src/types.h
index 7837ff2..2ec6aac 100644
--- a/src/types.h
+++ b/src/types.h
@@ -30,26 +30,25 @@
#include <stdint.h>
#include <SDL.h>
+typedef enum {
+ ACCEL_UNKNOWN,
+ ACCEL_FREERUNNER, /* Openmoko Neo Freerunner */
+} AccelType;
+
typedef struct {
- FILE *fh1;
- FILE *fh2;
+ FILE *fh;
- int ax;
- int ay;
- int az;
- int bx;
- int by;
- int bz;
+ AccelType type;
- int lval; /* The "mooing" contribution */
+ int x;
+ int y;
+ int z;
- int lax;
- int lay;
- int laz;
- int lbx;
- int lby;
- int lbz;
+ /* Temporary values for use during reading */
+ int lx;
+ int ly;
+ int lz;
} AccelHandle;