blob: 4fcc40d93a51c191c9149829eadb98f9ccdce0d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* Copyright (C) 2015-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "peripherals/bus/PeripheralBus.h"
namespace PERIPHERALS
{
/*!
* @class CPeripheralBusApplication
*
* This exposes peripherals that exist logically at the application level,
* such as emulated joysticks.
*/
class CPeripheralBusApplication : public CPeripheralBus
{
public:
explicit CPeripheralBusApplication(CPeripherals& manager);
~CPeripheralBusApplication(void) override = default;
// implementation of CPeripheralBus
void Initialise(void) override;
void GetDirectory(const std::string& strPath, CFileItemList& items) const override;
/*!
* \brief Get the location for the specified controller index
*/
std::string MakeLocation(unsigned int controllerIndex) const;
protected:
// implementation of CPeripheralBus
bool PerformDeviceScan(PeripheralScanResults& results) override;
};
} // namespace PERIPHERALS
|