@@ -24,6 +24,11 @@ enum eManifestPermissions
2424 P_WRITE_EXTERNAL_STORAGE,
2525}; // Unused
2626
27+ // AML 1.3.0 stuff (Vibration patterns, examples)
28+ static jlong DEFAULT_VIBRATE_PATTERN[4 ] = {0 , 250 , 250 , 250 };
29+ static jlong g_VibroPattern_Weak[7 ] = { 0 , 20 , 80 , 20 , 80 , 20 , 80 };
30+ static jlong g_VibroPattern_Alert[6 ] = { 0 , 200 , 100 , 200 , 100 , 400 };
31+
2732// I`m redoing this because i dont want to include additional file
2833// Thanks @XMDS, maybe someone will use it
2934struct GlossRegisters
@@ -180,8 +185,10 @@ class IAML
180185 /* AML 1.3.0 */
181186 virtual JavaVM* GetJavaVM ();
182187 virtual jobject GetCurrentContext ();
183- virtual void DoVibro (int msTime); // Pretty strong feedback...
184- virtual void DoVibro (jlong* pattern, int patternItems);
188+ virtual void DoVibro (int msTime); // Pretty strong feedback... If you need a small vibro, do it for like ~20ms, it's gonna be enough
189+ virtual void DoVibro (jlong* pattern, int patternItems); // Patterns might give you more control
190+ virtual void CancelVibro ();
191+ virtual float GetBatteryLevel (); // returns a float from 0.0 to 100.0
185192
186193
187194 // Inlines (shortcuts for you!)
0 commit comments