[MacOS] Implement joystick support

Maniphest Tasks: T508
This commit is contained in:
Roland Rossgotterer
2019-01-10 14:01:36 +01:00
committed by Mat Sutcliffe
parent ab9131fdec
commit cc620698c6
8 changed files with 350 additions and 34 deletions

View 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