11 #include "addons/kodi-dev-kit/include/kodi/addon-instance/peripheral/PeripheralUtils.h" 12 #include "peripherals/PeripheralTypes.h" 13 #include "peripherals/bus/PeripheralBus.h" 14 #include "threads/CriticalSection.h" 39 void callOnDeviceAdded(
const std::string& strLocation);
40 void callOnDeviceRemoved(
const std::string& strLocation);
44 const std::string& getDeviceLocationPrefix()
47 static std::string DeviceLocationPrefix(
"darwin/inputdevice/");
48 return DeviceLocationPrefix;
53 void GetEvents(std::vector<kodi::addon::PeripheralEvent>& events);
54 std::unique_ptr<PeripheralBusGCControllerWrapper> m_peripheralGCController;
55 std::string GetDeviceLocation(
int deviceId);
56 bool GetDeviceId(
const std::string& deviceLocation,
int& deviceId);
59 CCriticalSection m_critSectionStates;
60 CCriticalSection m_critSectionResults;
Definition: PeripheralTypes.h:348
Definition: PeripheralBusGCController.h:25
Definition: RetroPlayerInput.h:15
bool PerformDeviceScan(PeripheralScanResults &results) override
Scan for devices on this bus and add them to the results list. This will have to be implemented for e...
Definition: PeripheralBusGCController.mm:116
void ProcessEvents() override
Poll for events.
Definition: PeripheralBusGCController.mm:162
Definition: PeripheralBusGCController.mm:25
void Initialise(void) override
Initialise this bus and start a polling thread if this bus needs polling.
Definition: PeripheralBusGCController.mm:110
Definition: PeripheralBus.h:34
Definition: Peripheral.h:61
bool InitializeProperties(CPeripheral &peripheral) override
Initialize the properties of a peripheral with a known location.
Definition: PeripheralBusGCController.mm:46
Definition: Peripherals.h:53