added main menus, improved shading

This commit is contained in:
2025-07-18 20:37:52 +03:00
parent dddf1b5881
commit 070c3ff309
45 changed files with 859 additions and 271 deletions

View File

@@ -51,14 +51,16 @@ MTL::PixelFormat g_swapchainFormat;
// Other platforms
#endif
void IInput::SetMouseMode( EMouseMode mode )
void IInput::SetInputMode( EInputMode mode )
{
switch (mode)
{
case MOUSE_MODE_GAME:
case INPUT_MODE_GAME:
g_currentInputMode = INPUT_MODE_GAME;
SDL_SetWindowRelativeMouseMode(g_window, true);
return;
default:
g_currentInputMode = INPUT_MODE_MENU;
SDL_SetWindowRelativeMouseMode(g_window, false);
return;
}