Poll controllers on a separate thread on Windows.

This means controllers will sample more than the game fps, and will work
whenever keyboards do.
This commit is contained in:
Unknown W. Brackets committed 2014-03-23 23:46:10 -07:00
1 parent b589d3b170
commit b641ced7e0
5 files changed
+112 -20

No files matched your search

+2
View File
@@ -383,6 +383,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
// Emu thread is always running!
EmuThread_Start();
InputDevice::BeginPolling();
HACCEL hAccelTable = LoadAccelerators(_hInstance, (LPCTSTR)IDR_ACCELS);
HACCEL hDebugAccelTable = LoadAccelerators(_hInstance, (LPCTSTR)IDR_DEBUGACCELS);
@@ -433,6 +434,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
VFSShutdown();
InputDevice::StopPolling();
EmuThread_Stop();
MainWindow::DestroyDebugWindows();