mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(event): handle WM_CLOSE event in window proc
This commit is contained in:
parent
aafbada709
commit
98d75ca2e3
1 changed files with 16 additions and 1 deletions
|
|
@ -4,5 +4,20 @@
|
||||||
|
|
||||||
int32_t OsWindowProc(void* window, uint32_t message, uintptr_t wparam, intptr_t lparam) {
|
int32_t OsWindowProc(void* window, uint32_t message, uintptr_t wparam, intptr_t lparam) {
|
||||||
// TODO
|
// TODO
|
||||||
return 0;
|
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue