Gestures and accelerometer detection
So i finally built a small application for my phone (yells out don't touch me when shaken) :D
no terribly impressive I know but a start...
So I got the sound effect part sorted..it yells when a button is pressed but I cannot figure out how to access th gestures properly specifically the import
I'm using the Qt SDK and I get the "not installed" warning for gestures
"import QtSensors 5.0"
source: [url]http://doc.qt.nokia.com/5.0-snapshot/sensors-shakeit.html[/url]
Now I [U]think[/U] this may not be in 4.7 but do we have an alternative
edit I did search this forum before posting
Re: Gestures and accelerometer detection
You don't have a ny target devices which would include Qt 5.0, which indeed is still under construction. So instead you should use APIs available on Qt 4.7.
If the Gestures API is not there, then you would need to do your own recognition API which would then use the Sensor APIs directly.
Re: Gestures and accelerometer detection
Can I have an example of how to use the accelerometer to do shake stuff
qread ? getting close at all ?
Re: Gestures and accelerometer detection
wiki would be good place for code samples, here's one: [url]http://www.developer.nokia.com/Community/Wiki/Qt_Mobility_Example:_Sensor_Evaluation_Tool[/url] anyway, you might need to do your own logic for detecting any gestures there.