From db1765c4256fc7990347870e0862bc764f7a7398 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sun, 30 Jan 2011 16:40:38 +0000 Subject: Move async checking for pressed keys into Host_GetKeyState() and use wxGetKeyState on platforms other than Windows. I am not sure if wxGetKeyState is unreliable on Windows or if the use of GetAsyncKeyState() is simply historical, but for now I've left the Windows call in there just in case. This does mean that Host_GetKeyState() is currently only valid for the small set of keycodes that overlap between wx and Win32, one of which is VK_TAB/WXK_TAB. Anyway, please test wxGetKeyState on Windows and remove the ifdef if it works, so we can extend it to the remaining hotkeys. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6988 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/UnitTests/UnitTests.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'Source/UnitTests/UnitTests.cpp') diff --git a/Source/UnitTests/UnitTests.cpp b/Source/UnitTests/UnitTests.cpp index e2a1975c53..5731b163e8 100644 --- a/Source/UnitTests/UnitTests.cpp +++ b/Source/UnitTests/UnitTests.cpp @@ -146,27 +146,3 @@ int main(int argc, char* argv[]) } return 0; } - - -// Pretend that we are a host so we can link to core.... urgh. -//============================================================== -void Host_UpdateMainFrame(){} -void Host_UpdateDisasmDialog(){} -void Host_UpdateLogDisplay(){} -void Host_UpdateMemoryView(){} -void Host_NotifyMapLoaded(){} -void Host_ShowJitResults(unsigned int address){} -void Host_UpdateBreakPointView(){} -void Host_SetDebugMode(bool enable){} - -void Host_SetWaitCursor(bool enable){} - -void Host_UpdateStatusBar(const char* _pText, int Filed = 0){} - -void Host_SysMessage(const char *fmt, ...){} -void Host_SetWiiMoteConnectionState(int _State){} - -void Host_UpdateLeds(int bits){} -void Host_UpdateSpeakerStatus(int index, int bits){} -void Host_UpdateStatus(){} -void Host_Message(int){} -- cgit v1.2.3