mouse controls, fixed texture loading
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user