Add Quartz/CoreGraphics controller interface for default k&m events

This commit is contained in:
Michael Maltese
2016-08-08 09:38:22 -07:00
parent 1ab99ee22c
commit 3dc8136e14
7 changed files with 365 additions and 1 deletions

View File

@ -0,0 +1,30 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <Cocoa/Cocoa.h>
#include <Foundation/Foundation.h>
#include <IOKit/hid/IOHIDLib.h>
#include "Common/StringUtil.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/Quartz/Quartz.h"
#include "InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h"
#include <map>
namespace ciface
{
namespace Quartz
{
void Init(void* window)
{
g_controller_interface.AddDevice(std::make_shared<KeyboardAndMouse>(window));
}
void DeInit()
{
}
}
}