kodi
PeripheralBusGCControllerManager.h
1 /*
2  * Copyright (C) 2020 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #include "addons/kodi-dev-kit/include/kodi/addon-instance/peripheral/PeripheralUtils.h"
10 #include "peripherals/PeripheralTypes.h"
11 #include "threads/CriticalSection.h"
12 
13 #import "platform/darwin/peripherals/Input_Gamecontroller.h"
14 #include "platform/darwin/peripherals/PeripheralBusGCController.h"
15 
16 #include <string>
17 #include <vector>
18 
19 #import <Foundation/Foundation.h>
20 
22 
23 @property(nonatomic, strong) Input_GCController* input_GC;
24 
25 - (instancetype)initWithName:(PERIPHERALS::CPeripheralBusGCController*)parentClass;
26 - (PERIPHERALS::PeripheralScanResults)GetInputDevices;
27 - (void)DeviceAdded:(int)deviceID;
28 - (void)DeviceRemoved:(int)deviceID;
29 - (void)SetDigitalEvent:(kodi::addon::PeripheralEvent)event;
30 - (void)SetAxisEvent:(kodi::addon::PeripheralEvent)event;
31 - (std::vector<kodi::addon::PeripheralEvent>)GetButtonEvents;
32 - (std::vector<kodi::addon::PeripheralEvent>)GetAxisEvents;
33 - (int)GetControllerAxisCount:(int)deviceId withControllerType:(GCCONTROLLER_TYPE)controllerType;
34 - (int)GetControllerButtonCount:(int)deviceId withControllerType:(GCCONTROLLER_TYPE)controllerType;
35 - (GCCONTROLLER_TYPE)GetControllerType:(int)deviceID;
36 - (std::string)GetDeviceLocation:(int)deviceId;
37 - (void)displayMessage:(NSString*)message controllerID:(int)controllerID;
38 @end
Definition: PeripheralTypes.h:356
Definition: PeripheralBusGCController.h:25
Definition: PeripheralBusGCControllerManager.h:21
Definition: Input_Gamecontroller.h:17