Skip to content
Snippets Groups Projects
Commit 1abd8b94 authored by jwendt's avatar jwendt
Browse files

make navigation speed settable

#452
parent 7390eb30
No related branches found
No related tags found
1 merge request!138Feature/#452 device abstraction
......@@ -81,6 +81,14 @@ void VRControllerNavigationBehavior::OnButtonSignal(
}
}
float VRControllerNavigationBehavior::GetNavigationSpeed() const {
return speed_;
}
void VRControllerNavigationBehavior::SetNavigationSpeed(float speed) {
speed_ = speed;
}
phx::VRController* VRControllerNavigationBehavior::GetController() {
for (auto controller : device_system_->GetDevices<phx::VRController>()) {
if (controller->GetSide() == side_) {
......
......@@ -46,6 +46,9 @@ class VRControllerNavigationBehavior : public phx::Behavior {
void OnButtonSignal(phx::VRController::ButtonId id,
phx::VRController::ButtonEvent event);
float GetNavigationSpeed() const;
void SetNavigationSpeed(float speed);
private:
phx::DeviceSystem* device_system_;
phx::VRController* GetController();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment