forked from dolphin-emu/dolphin
Currently, `g_controller_interface` is initialized and shut down by each of `GCKeyboard`, `GCPad`, `Wiimote`, and `HotkeyManager`. This 1) is weird conceptually, because it necessitates passing a pointer to the native window to each of those classes, which don't need it, and 2) can cause issues when controller backends are initialized or shutdown multiple times in succession.
22 lines
344 B
C++
22 lines
344 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class InputConfig;
|
|
struct KeyboardStatus;
|
|
|
|
namespace Keyboard
|
|
{
|
|
void Shutdown();
|
|
void Initialize();
|
|
void LoadConfig();
|
|
|
|
InputConfig* GetConfig();
|
|
|
|
KeyboardStatus GetStatus(int port);
|
|
}
|