Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 314 vs 315 for /trunk/Source Code/Scenes/SceneInput.cpp

Diff revisions: vs.
  @@ -5,11 +5,7 @@
5 5 #include "Managers/Headers/SceneManager.h"
6 6
7 7 void Scene::onLostFocus(){
8 - state()._moveFB = 0;
9 - state()._moveLR = 0;
10 - state()._roll = 0;
11 - state()._angleLR = 0;
12 - state()._angleUD = 0;
8 + state().resetMovement();
13 9 #ifndef _DEBUG
14 10 _paramHandler.setParam("freezeLoopTime", true);
15 11 #endif
  @@ -105,16 +101,16 @@
105 101
106 102 if (upState){
107 103 switch (code){
108 - case OIS::KC_W: if (state()._moveFB == 1) state()._moveFB = 0; break;
109 - case OIS::KC_S: if (state()._moveFB == -1) state()._moveFB = 0; break;
110 - case OIS::KC_A: if (state()._moveLR == -1) state()._moveLR = 0; break;
111 - case OIS::KC_D: if (state()._moveLR == 1) state()._moveLR = 0; break;
112 - case OIS::KC_Q: if (state()._roll == -1) state()._roll = 0; break;
113 - case OIS::KC_E: if (state()._roll == 1) state()._roll = 0; break;
114 - case OIS::KC_LEFT: if (state()._angleLR == -1) state()._angleLR = 0; break;
115 - case OIS::KC_RIGHT: if (state()._angleLR == 1) state()._angleLR = 0; break;
116 - case OIS::KC_UP: if (state()._angleUD == -1) state()._angleUD = 0; break;
117 - case OIS::KC_DOWN: if (state()._angleUD == 1) state()._angleUD = 0; break;
104 + case OIS::KC_W: state()._moveFB = 0; break;
105 + case OIS::KC_S: state()._moveFB = 0; break;
106 + case OIS::KC_A: state()._moveLR = 0; break;
107 + case OIS::KC_D: state()._moveLR = 0; break;
108 + case OIS::KC_Q: state()._roll = 0; break;
109 + case OIS::KC_E: state()._roll = 0; break;
110 + case OIS::KC_LEFT: state()._angleLR = 0; break;
111 + case OIS::KC_RIGHT: state()._angleLR = 0; break;
112 + case OIS::KC_UP: state()._angleUD = 0; break;
113 + case OIS::KC_DOWN: state()._angleUD = 0; break;
118 114 }
119 115 }else{
120 116 switch (code){