Well, I mean the command itself is slow, no matter what I do.
I tried an alternative, but PeekMessage isn't ever returning a true.
void PeekAtMessages(void *Params)
{
MSG msg;
HWND hwnd = g_pGlob->hWnd;
while (LoopGDK())
{
//would this be called a hack?
if (PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE))
{
MessageBoxA(NULL, "zomg", "WUT", MB_OK);
break;
if (msg.message == WM_CHAR)
{
TranslateMessage(&msg);
MessageBoxA(NULL, (LPCSTR)&msg.wParam, "RAWR", MB_OK);
char c = char(msg.wParam);
//if (c == 8 && EntryBuffer.length() > 0)
// EntryBuffer.erase(EntryBuffer.length() - 2);
//if (c != 8)
EntryBuffer += c;
}
}
}
_endthread();
}
It's like... well... does DarkGDK eat the messages or something?
No... there's something wrong with the hWnd from the global struct. Is there another way to get the HWND?