mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user