I've searched everywhere and can't seem to find the answer. Nobody has made anything like this apparently. I'm trying to get input from a user.
while(!done)
{
PeekMessage(&msg,NULL,NULL,NULL,PM_REMOVE);
if (msg.message == WM_QUIT) {
done = true; //if found, quit app
} else if (msg.message == WM_KEYDOWN) {
game->KeyDown(msg.wParam);
} else if (msg.message == WM_KEYUP) {
game->KeyUp(msg.wParam);
} else {
/* Translate and dispatch to event queue*/
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
When I run it it gives me the error:
error LNK2019: unresolved external symbol "public: void __thiscall Game::KeyDown(unsigned int &)" (?KeyDown@Game@@QAEXAAI@Z) referenced in function _WinMain@16
I have everything defined in the header of the game class... It's subsystem is set to nothing, but the "(/SUBSYSTEM:WINDOWS)" works..