/
dexMargera
/
360Controller
Обзор
Документация
Войти
/
dexMargera
/
360Controller
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
Аналитика
Безопасность
master
Pref360Control/DeviceItem.h
42 строки
2 KB
Kyle Lacy
Add `controllerType` property to `DeviceItem`
27 апр 2016, 01:12
27 апр 2016, 01:12
b69b199
Код
Авторство
О чём код?
/* MICE Xbox 360 Controller driver for Mac OS X Copyright (C) 2006-2013 Colin Munro DeviceItem.h - declaration of wrapper class for device handles This file is part of Xbox360Controller. Xbox360Controller is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Xbox360Controller is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #import <Cocoa/Cocoa.h> #include <IOKit/IOKitLib.h> #include <IOKit/IOCFPlugIn.h> #include <IOKit/hid/IOHIDLib.h> #include <IOKit/hid/IOHIDKeys.h> #include <ForceFeedback/ForceFeedback.h> #import "Pref360ControlPref.h" @interface DeviceItem : NSObject @property (strong, readonly) NSString *displayName; @property (readonly) ControllerType controllerType; @property (readonly) io_service_t rawDevice; @property (readonly) FFDeviceObjectReference ffDevice; @property (readonly) IOHIDDeviceInterface122 **hidDevice; + (instancetype)allocateDeviceItemForDevice:(io_service_t)device; - (instancetype)initWithItemForDevice:(io_service_t)device; @end