WiimoteEmu: Make constructor of Wiimote explicit
Prevents implicit conversions
This commit is contained in:
parent
5b58977561
commit
113a357604
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue