mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
[MacOS] Implement joystick support
Maniphest Tasks: T508
This commit is contained in:
committed by
Mat Sutcliffe
parent
ab9131fdec
commit
cc620698c6
30
src/blackinput/macos/macosinpututils.h
Normal file
30
src/blackinput/macos/macosinpututils.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/* Copyright (C) 2019
|
||||
* swift Project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#ifndef BLACKINPUT_MACOSINPUTUTILS_H
|
||||
#define BLACKINPUT_MACOSINPUTUTILS_H
|
||||
|
||||
//! \file
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
namespace BlackInput
|
||||
{
|
||||
//! Common MacOS input utilities
|
||||
class CMacOSInputUtils
|
||||
{
|
||||
public:
|
||||
CMacOSInputUtils() = delete;
|
||||
|
||||
//! Creates a new device matching dict using usagePage and usage
|
||||
static CFMutableDictionaryRef createDeviceMatchingDictionary(UInt32 usagePage, UInt32 usage);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user