v1.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Classes | Enumerations
Motion

Motion tracking subsystem. More...

Classes

struct  Sifteo::MotionBuffer< tSize >
 A memory buffer which holds captured motion data. More...
 
class  Sifteo::MotionIterator
 Utility for reading low-level motion events from a MotionBuffer. More...
 
class  Sifteo::MotionMedian
 Calculate median, minimum, and maximum statistics from a MotionBuffer. More...
 
class  Sifteo::TiltShakeRecognizer
 A standard recognizer for shake and tilt gestures. More...
 

Enumerations

enum  Sifteo::TiltShakeRecognizer::ChangeFlags {
  Sifteo::TiltShakeRecognizer::Shake_Begin = 1 << 0, Sifteo::TiltShakeRecognizer::Shake_End = 1 << 1, Sifteo::TiltShakeRecognizer::Shake_Change = Shake_Begin | Shake_End, Sifteo::TiltShakeRecognizer::Tilt_XNeg = 1 << 2,
  Sifteo::TiltShakeRecognizer::Tilt_XZero = 1 << 3, Sifteo::TiltShakeRecognizer::Tilt_XPos = 1 << 4, Sifteo::TiltShakeRecognizer::Tilt_XChange = Tilt_XNeg | Tilt_XZero | Tilt_XPos, Sifteo::TiltShakeRecognizer::Tilt_YNeg = 1 << 5,
  Sifteo::TiltShakeRecognizer::Tilt_YZero = 1 << 6, Sifteo::TiltShakeRecognizer::Tilt_YPos = 1 << 7, Sifteo::TiltShakeRecognizer::Tilt_YChange = Tilt_YNeg | Tilt_YZero | Tilt_YPos, Sifteo::TiltShakeRecognizer::Tilt_ZNeg = 1 << 8,
  Sifteo::TiltShakeRecognizer::Tilt_ZZero = 1 << 9, Sifteo::TiltShakeRecognizer::Tilt_ZPos = 1 << 10, Sifteo::TiltShakeRecognizer::Tilt_ZChange = Tilt_ZNeg | Tilt_ZZero | Tilt_ZPos, Sifteo::TiltShakeRecognizer::Tilt_Change = Tilt_XChange | Tilt_YChange | Tilt_ZChange
}
 Change flags, returned by update() to indicate what just changed. More...
 

Detailed Description

Motion tracking subsystem.

By attaching MotionBuffer objects to cubes, applications can capture high-frequency motion data and detect gestures using this data.

Enumeration Type Documentation

Change flags, returned by update() to indicate what just changed.

Enumerator
Shake_Begin 

'shake' has changed to 'true'

Shake_End 

'shake' has changed to 'false'

Shake_Change 

'shake' has changed

Tilt_XNeg 

'tilt.x' has changed to -1

Tilt_XZero 

'tilt.x' has changed to 0

Tilt_XPos 

'tilt.x' has changed to +1

Tilt_XChange 

'tilt.x' has changed

Tilt_YNeg 

'tilt.y' has changed to -1

Tilt_YZero 

'tilt.y' has changed to 0

Tilt_YPos 

'tilt.y' has changed to +1

Tilt_YChange 

'tilt.y' has changed

Tilt_ZNeg 

'tilt.z' has changed to -1

Tilt_ZZero 

'tilt.z' has changed to 0

Tilt_ZPos 

'tilt.z' has changed to +1

Tilt_ZChange 

'tilt.z' has changed

Tilt_Change 

'tilt' has changed