So this is my* code, vs can compile it, but i cant interact with any of my keyboard and mouse buttons
while (true)
{
if (mainwindow->Closed() or mainwindow->KeyDown(UltraEngine::KEY_ESCAPE)) break;
mousedown = false;
if (window->MouseDown(1))
{
m_vCamRot.y += (window->MouseX() - (window->GetWidth() / 2)) * Time::GetSpeed() * 0.2;
m_vCamRot.x += (window->MouseY() - (window->GetHeight() / 2)) * Time::GetSpeed() * 0.2;
mousedown = true;
}
m_vCamRot.z = -3 + window->GetMousePosition().z;
if (mousedown)
{
window->HideMouse();
window->SetMousePosition(window->GetWidth() / 2, window->GetHeight() / 2);
}
else
{
window->ShowMouse();
}
Vec3 pos = m_pCamPivot->GetPosition();
camera->SetPosition(pos.x, pos.y + 0.5, pos.z);
camera->SetRotation(m_vCamRot.x, m_vCamRot.y, 0);
camera->Move(0, 0, m_vCamRot.z);
This still uses uak and leadwerks.
*Most of the code is from reepblue!