Added an optional duration argument to Joystick:setVibration.

This commit is contained in:
Alex Szpakowski
2014-05-10 16:52:40 -03:00
parent 6a491ed0f0
commit 036f6eb8cb
6 changed files with 98 additions and 57 deletions
+2 -2
View File
@@ -157,9 +157,9 @@ public:
virtual int getID() const = 0;
virtual bool isVibrationSupported() = 0;
virtual bool setVibration(float left, float right) = 0;
virtual bool setVibration(float left, float right, float duration = -1.0f) = 0;
virtual bool setVibration() = 0;
virtual void getVibration(float &left, float &right) const = 0;
virtual void getVibration(float &left, float &right) = 0;
static bool getConstant(const char *in, Hat &out);
static bool getConstant(Hat in, const char *&out);