mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
29 lines
543 B
C++
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);
|
|
}
|