WiimoteEmu: Make constructor of Wiimote explicit
Prevents implicit conversions
This commit is contained in:
1 parent
5b58977561
commit
113a357604
1 file changed
+1
-1
@@ -226,7 +226,7 @@ public:
|
||||
BUTTON_HOME = 0x8000,
|
||||
};
|
||||
|
||||
Wiimote(unsigned int index);
|
||||
explicit Wiimote(unsigned int index);
|
||||
std::string GetName() const override;
|
||||
ControllerEmu::ControlGroup* GetWiimoteGroup(WiimoteGroup group);
|
||||
ControllerEmu::ControlGroup* GetNunchukGroup(NunchukGroup group);
|
||||
|
||||
Reference in new issue
Block a user