Added love.system.vibrate(time), which causes the phone to vibrate on Android. love.system.getOS() now returns "Android" on Android. Implemented love.system.openURL.

This commit is contained in:
Martin Felis
2015-08-13 19:48:25 -03:00
parent 637a3a9d62
commit 2ab69094e1
6 changed files with 37 additions and 1 deletions
+7
View File
@@ -99,6 +99,13 @@ public:
**/
virtual bool openURL(const std::string &url) const;
/**
* Vibrates for the specified amount of seconds.
*
* @param number of seconds to vibrate.
*/
virtual void vibrate(double seconds) const;
static bool getConstant(const char *in, PowerState &out);
static bool getConstant(PowerState in, const char *&out);