Showing the changes to interface/src/ControllerScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -180,17 +180,12 @@ glm::vec3 ControllerScriptingInterface::getSpatialControlNormal(int controlIndex · 179 unmodified lines | |||
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { | 182 | bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { |
| 183 | qDebug() << "ControllerScriptingInterface::isKeyCaptured() event=" << event; | ||
| 184 | return isKeyCaptured(KeyEvent(*event)); | 183 | return isKeyCaptured(KeyEvent(*event)); |
| 185 | } | 184 | } |
| 186 | 185 | ||
| 187 | bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const { | 186 | bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const { |
| 188 | |||
| 189 | qDebug() << "ControllerScriptingInterface::isKeyCaptured() event.key=" << event.key; | ||
| 190 | |||
| 191 | // if we've captured some combination of this key it will be in the map | 187 | // if we've captured some combination of this key it will be in the map |
| 192 | if (_capturedKeys.contains(event.key, event)) { | 188 | if (_capturedKeys.contains(event.key, event)) { |
| 193 | qDebug() << "ControllerScriptingInterface::isKeyCaptured() event.key=" << event.key << " returning TRUE"; | ||
| 194 | return true; | 189 | return true; |
| 195 | } | 190 | } |
| 196 | return false; | 191 | return false; |