Cleaning up apu/ and renaming -private files to _flags.

Part of #296.
This commit is contained in:
Ben Vanik
2015-06-27 11:25:45 -07:00
parent 0d2d07e8e6
commit 8c69a4df09
64 changed files with 249 additions and 541 deletions

View File

@@ -15,25 +15,7 @@ namespace xe {
namespace hid {
namespace xinput {
void InitializeIfNeeded();
void CleanupOnShutdown();
void InitializeIfNeeded() {
static bool has_initialized = false;
if (has_initialized) {
return;
}
has_initialized = true;
//
atexit(CleanupOnShutdown);
}
void CleanupOnShutdown() {}
std::unique_ptr<InputDriver> Create(InputSystem* input_system) {
InitializeIfNeeded();
return std::make_unique<XInputInputDriver>(input_system);
}