Partially implemented Windows keyboard HID for testing.

This commit is contained in:
Ben Vanik
2014-02-23 16:36:17 -08:00
parent 86f66c4ab7
commit 24fc5acb07
8 changed files with 359 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include <xenia/hid/winkey/winkey_hid.h>
#include <xenia/hid/winkey/winkey_input_driver.h>
using namespace xe;
using namespace xe::hid;
using namespace xe::hid::winkey;
namespace {
void InitializeIfNeeded();
void CleanupOnShutdown();
void InitializeIfNeeded() {
static bool has_initialized = false;
if (has_initialized) {
return;
}
has_initialized = true;
//
atexit(CleanupOnShutdown);
}
void CleanupOnShutdown() {
}
}
InputDriver* xe::hid::winkey::Create(InputSystem* input_system) {
InitializeIfNeeded();
return new WinKeyInputDriver(input_system);
}