whoa/src/event/win/Window.cpp
2023-03-15 17:40:07 -05:00

29 lines
543 B
C++

#include "event/Window.hpp"
#include "event/Input.hpp"
#include <windows.h>
int32_t OsGuiProcessMessage(void* message) {
// TODO
return 0;
}
int32_t OsWindowProc(void* window, uint32_t message, uintptr_t wparam, intptr_t lparam) {
// TODO
switch (message) {
// TODO handle remaining message types
case WM_CLOSE: {
OsQueuePut(OS_INPUT_CLOSE, 0, 0, 0, 0);
return 0;
}
default:
break;
}
// TODO
return DefWindowProc(static_cast<HWND>(window), message, wparam, lparam);
}