added main menus, improved shading
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user