mouse controls, fixed texture loading

This commit is contained in:
2026-04-27 22:33:40 +03:00
parent cbcfdce047
commit 9569555347
31 changed files with 112 additions and 40 deletions

View File

@@ -31,6 +31,11 @@ static void CallKeyEvent( EInputDeviceType eDevice, EInputButton eButton, bool b
g_pHumanDeviceManager->SetButtonUnpressed(eButton);
}
static void CallAxisEvent( EInputDeviceType eDevice, EInputAxis eAxis, float fValue )
{
g_pHumanDeviceManager->AxisEventRelative(eDevice, eAxis, fValue );
}
extern "C" void __cdecl SteamAPIDebug( ESteamNetworkingSocketsDebugOutputType nType, const char *pszMsg )
{
V_printf("STEAM: %s\n", pszMsg);
@@ -88,6 +93,7 @@ extern "C" void FunnyMain( int argc, char **argv )
pWindow = g_pWindowManager->CreateWindow();
pWindow->Init();
pWindow->SetKeyCallback(CallKeyEvent);
pWindow->SetAxisCallback(CallAxisEvent);
g_pRenderContext = (IRenderContext*)pRenderSystemFactory(RENDER_CONTEXT_INTERFACE_VERSION, NULL);
g_pRenderContext->SetMainWindowManager(g_pWindowManager);