diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2008-11-27 23:39:59 +0100 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2008-11-28 00:03:37 +0000 |
commit | cea996c922b7f9b35ebadb23296561e40991991e (patch) | |
tree | 4dea59c9f4cc4483ed4db40e9c7279138ad9695d /src/types.h | |
parent | 88e371c5ebffb47737a14836821498812aa3b0f0 (diff) |
Move moo-detection into accel driver
Slight refactorization: The decision, whether a moo should happen, is
moved to the driver-specific code (because it knows best what kind of
device to expect). A member “state” is added to the accel struct which
can be used to implement a state machine inside the driver (as was done
before with pos).
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index eae97b6..cc7a227 100644 --- a/src/types.h +++ b/src/types.h @@ -50,6 +50,9 @@ typedef struct { int lx; int ly; int lz; + + /* Current state (driver dependent) */ + int state; } AccelHandle; |