Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -468,6 +468,10 @@ int ControllerScriptingInterface::findDevice(QString name) { · 467 unmodified lines | ||
| 468 | 468 | return DependencyManager::get<UserInputMapper>()->findDevice(name); |
| 469 | 469 | } |
| 470 | 470 | |
| 471 | +float ControllerScriptingInterface::getActionValue(int action) { | |
| 472 | + return DependencyManager::get<UserInputMapper>()->getActionState(UserInputMapper::Action(action)); | |
| 473 | +} | |
| 474 | + | |
| 471 | 475 | InputController::InputController(int deviceTrackerId, int subTrackerId, QObject* parent) : |
| 472 | 476 | AbstractInputController(), |
| 473 | 477 | _deviceTrackerId(deviceTrackerId), |