/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. * * Released under the BSD license - see LICENSE in the root for more details. * ****************************************************************************** */ #include #include using namespace xe; using namespace xe::hid; using namespace xe::hid::xinput; 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::xinput::Create(InputSystem* input_system) { InitializeIfNeeded(); return new XInputInputDriver(input_system); }