ControllerInterface: Get rid of SetHwnd(), introduce Reinitialize()

Initialize now just takes the handle directly. Reinitialize is added because it is much more straightforward in comparison to doing the Shutdown-Initialize manually.
This commit is contained in:
Lioncash
2014-10-13 12:45:47 -04:00
parent 8912315596
commit b7b2074cc2
5 changed files with 21 additions and 24 deletions

View File

@ -114,8 +114,8 @@ public:
ControllerInterface() : m_is_init(false), m_hwnd(nullptr) {}
void SetHwnd(void* const hwnd);
void Initialize();
void Initialize(void* const hwnd);
void Reinitialize();
void Shutdown();
bool IsInit() const { return m_is_init; }