Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 318 vs 320 for /trunk/Source Code/Scenes/SceneInput.cpp

Diff revisions: vs.
  @@ -102,39 +102,7 @@
102 102 }
103 103
104 104 using namespace Input;
105 - void Scene::defaultCameraKeys(KeyCode code, bool upState){
106 - if (upState){
107 - switch (code){
108 - case KeyCode::KC_W: state()._moveFB = 0; break;
109 - case KeyCode::KC_S: state()._moveFB = 0; break;
110 - case KeyCode::KC_A: state()._moveLR = 0; break;
111 - case KeyCode::KC_D: state()._moveLR = 0; break;
112 - case KeyCode::KC_Q: state()._roll = 0; break;
113 - case KeyCode::KC_E: state()._roll = 0; break;
114 - case KeyCode::KC_LEFT: state()._angleLR = 0; break;
115 - case KeyCode::KC_RIGHT: state()._angleLR = 0; break;
116 - case KeyCode::KC_UP: state()._angleUD = 0; break;
117 - case KeyCode::KC_DOWN: state()._angleUD = 0; break;
118 - }
119 - } else {
120 - switch (code){
121 - case KeyCode::KC_W: state()._moveFB = 1; break;
122 - case KeyCode::KC_S: state()._moveFB = -1; break;
123 - case KeyCode::KC_A: state()._moveLR = -1; break;
124 - case KeyCode::KC_D: state()._moveLR = 1; break;
125 - case KeyCode::KC_Q: state()._roll = -1; break;
126 - case KeyCode::KC_E: state()._roll = 1; break;
127 - case KeyCode::KC_LEFT: state()._angleLR = -1; break;
128 - case KeyCode::KC_RIGHT: state()._angleLR = 1; break;
129 - case KeyCode::KC_UP: state()._angleUD = -1; break;
130 - case KeyCode::KC_DOWN: state()._angleUD = 1; break;
131 - }
132 - }
133 - }
134 -
135 105 bool Scene::onKeyDown(const Input::KeyEvent& key){
136 - defaultCameraKeys(key._key, false);
137 -
138 106 switch(key._key){
139 107 default: return false;
140 108 case KeyCode::KC_END : deleteSelection(); break;
  @@ -160,8 +128,6 @@
160 128 }
161 129
162 130 bool Scene::onKeyUp(const Input::KeyEvent& key){
163 - defaultCameraKeys(key._key, true);
164 -
165 131 switch( key._key ){
166 132 case KeyCode::KC_P:
167 133 _paramHandler.setParam("freezeLoopTime", !_paramHandler.getParam("freezeLoopTime", false));