Bug 1545806 - Correct the initializer list in Windows gamepad axis value constructor. r=qdot

Differential Revision: https://phabricator.services.mozilla.com/D28242

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Daosheng Mu 2019-04-22 18:37:11 +00:00
parent 4d089aa543
commit 9e73a18233

View File

@ -123,7 +123,8 @@ class Gamepad {
double value;
bool active;
axisValue() = default;
axisValue()
: value(0.0f), active(false) {}
explicit axisValue(const HIDP_VALUE_CAPS& aCaps)
: caps(aCaps), value(0.0f), active(true) {}
};