Code for a wearable gesture based mouse glove. Using Arduino Flora, the wearable LSM9DSO accelerometer, and MPR121 capacitive touch breakout, all from Adafruit.
For the LSM303:
For the LSM9DS0:
For the MPR121:
You may need to manually adjust the threshold values for touch based on your glove, we ended up using 14 for touch and 7 for release.