aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-12-09 12:42:20 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-12-09 12:42:20 +0100
commit254fb0c490c62c0e29518cab2d8b5c90a30b378c (patch)
tree0fe5007234b954d9039796387b3fc6356f824876 /common.h
parent1d0d6f316707cbaac23b3b0b77b5d554f6e7954d (diff)
downloadhourglass-254fb0c490c62c0e29518cab2d8b5c90a30b378c.tar.gz
hourglass-254fb0c490c62c0e29518cab2d8b5c90a30b378c.tar.bz2
hourglass-254fb0c490c62c0e29518cab2d8b5c90a30b378c.zip
accel: Fix shake gesture detection
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index eced70e..e879e92 100644
--- a/common.h
+++ b/common.h
@@ -44,5 +44,7 @@ enum {
void shutdownError ();
+#define sign(x) ((x < 0) ? -1 : 1)
+
#endif /* COMMON_H */