SDL2: Added gamepad support.

This commit is contained in:
Branimir Karadžić
2014-12-15 20:58:54 -08:00
parent 504af5216b
commit 73a227cefd
10 changed files with 372 additions and 49 deletions

View File

@@ -2239,7 +2239,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::dbgTextPrintf(0, 3, 0x0f, "Frame: % 7.3f[ms]", double(frameTime)*toMs);
// Update camera.
cameraUpdate(deltaTime, mouseState.m_mx, mouseState.m_my, !!mouseState.m_buttons[entry::MouseButton::Right]);
cameraUpdate(deltaTime, mouseState);
// Update view mtx.
cameraGetViewMtx(viewState.m_view);