summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h
index 721da35..ea70b30 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/PeripheralUtils.h
@@ -104,7 +104,7 @@ namespace addon
104 { 104 {
105 } 105 }
106 106
107 Peripheral(const PERIPHERAL_INFO& info) : 107 explicit Peripheral(const PERIPHERAL_INFO& info) :
108 m_type(info.type), 108 m_type(info.type),
109 m_strName(info.name ? info.name : ""), 109 m_strName(info.name ? info.name : ""),
110 m_vendorId(info.vendor_id), 110 m_vendorId(info.vendor_id),
@@ -196,7 +196,7 @@ namespace addon
196 SetAxisState(state); 196 SetAxisState(state);
197 } 197 }
198 198
199 PeripheralEvent(const PERIPHERAL_EVENT& event) : 199 explicit PeripheralEvent(const PERIPHERAL_EVENT& event) :
200 m_event(event) 200 m_event(event)
201 { 201 {
202 } 202 }
@@ -259,7 +259,7 @@ namespace addon
259 *this = other; 259 *this = other;
260 } 260 }
261 261
262 Joystick(const JOYSTICK_INFO& info) : 262 explicit Joystick(const JOYSTICK_INFO& info) :
263 Peripheral(info.peripheral), 263 Peripheral(info.peripheral),
264 m_provider(info.provider ? info.provider : ""), 264 m_provider(info.provider ? info.provider : ""),
265 m_requestedPort(info.requested_port), 265 m_requestedPort(info.requested_port),
@@ -445,7 +445,7 @@ namespace addon
445 return DriverPrimitive(JOYSTICK_DRIVER_PRIMITIVE_TYPE_MOTOR, motorIndex); 445 return DriverPrimitive(JOYSTICK_DRIVER_PRIMITIVE_TYPE_MOTOR, motorIndex);
446 } 446 }
447 447
448 DriverPrimitive(const JOYSTICK_DRIVER_PRIMITIVE& primitive) : 448 explicit DriverPrimitive(const JOYSTICK_DRIVER_PRIMITIVE& primitive) :
449 m_type(primitive.type), 449 m_type(primitive.type),
450 m_driverIndex(0), 450 m_driverIndex(0),
451 m_hatDirection(JOYSTICK_DRIVER_HAT_UNKNOWN), 451 m_hatDirection(JOYSTICK_DRIVER_HAT_UNKNOWN),
@@ -604,12 +604,12 @@ namespace addon
604 *this = other; 604 *this = other;
605 } 605 }
606 606
607 JoystickFeature(const JOYSTICK_FEATURE& feature) : 607 explicit JoystickFeature(const JOYSTICK_FEATURE& feature) :
608 m_name(feature.name ? feature.name : ""), 608 m_name(feature.name ? feature.name : ""),
609 m_type(feature.type) 609 m_type(feature.type)
610 { 610 {
611 for (unsigned int i = 0; i < JOYSTICK_PRIMITIVE_MAX; i++) 611 for (unsigned int i = 0; i < JOYSTICK_PRIMITIVE_MAX; i++)
612 m_primitives[i] = feature.primitives[i]; 612 m_primitives[i] = DriverPrimitive(feature.primitives[i]);
613 } 613 }
614 614
615 JoystickFeature& operator=(const JoystickFeature& rhs) 615 JoystickFeature& operator=(const JoystickFeature& rhs)