Mouse Vel & UpdateInput called from SBApplication
This commit is contained in:
parent
aef3e4ef1a
commit
3c58a538ae
|
@ -118,6 +118,7 @@ namespace Sandbox
|
|||
while (!window.WindowShouldClose())
|
||||
{
|
||||
SHFrameRateController::UpdateFRC();
|
||||
SHInputManager::UpdateInput(SHFrameRateController::GetRawDeltaTime());
|
||||
SHSceneManager::UpdateSceneManager();
|
||||
SHSceneManager::SceneUpdate(1/60.0f);
|
||||
//#ifdef SHEDITOR
|
||||
|
|
|
@ -112,6 +112,10 @@ namespace SHADE
|
|||
mouseScreenX = p.x;
|
||||
mouseScreenY = p.y;
|
||||
|
||||
//Velocity
|
||||
mouseVelocityX = static_cast<double>(mouseScreenX - mouseScreenXLast) / dt;
|
||||
mouseVelocityY = static_cast<double>(mouseScreenY - mouseScreenYLast) / dt;
|
||||
|
||||
//Mouse wheel vertical delta updating
|
||||
mouseWheelVerticalDelta = 0;
|
||||
mouseWheelVerticalDelta = mouseWheelVerticalDeltaPoll;
|
||||
|
|
Loading…
Reference in New Issue