@@ -117,16 +117,16 @@ void SlimeVRDriver::TrackerDevice::PositionMessage(messages::Position& position)
117117}
118118void SlimeVRDriver::TrackerDevice::ControllerInputMessage (messages::ControllerInput& controllerInput) {
119119 // Get inputs from protobuf
120- GetDriver ()->GetInput ()->UpdateScalarComponent (trigger_component_, controllerInput.trigger (), 0 );
121- GetDriver ()->GetInput ()->UpdateBooleanComponent (trigger_component_touch_, controllerInput.trigger () > 0 .5f , 0 );
122- GetDriver ()->GetInput ()->UpdateScalarComponent (grip_value_component_, controllerInput.grip (), 0 );
123- GetDriver ()->GetInput ()->UpdateScalarComponent (stick_x_component_, controllerInput.thumbstick_x (), 0 );
124- GetDriver ()->GetInput ()->UpdateScalarComponent (stick_y_component_, controllerInput.thumbstick_y (), 0 );
125- GetDriver ()->GetInput ()->UpdateBooleanComponent (button_a_component_, controllerInput.button_1 (), 0 );
126- GetDriver ()->GetInput ()->UpdateBooleanComponent (button_b_component_, controllerInput.button_2 (), 0 );
127- GetDriver ()->GetInput ()->UpdateBooleanComponent (stick_click_component_, controllerInput.stick_click (), 0 );
128- GetDriver ()->GetInput ()->UpdateBooleanComponent (system_component, controllerInput.menu_recenter (), 0 );
129- GetDriver ()->GetInput ()->UpdateBooleanComponent (system_component_chord, controllerInput.menu_recenter (), 0 );
120+ GetDriver ()->GetInput ()->UpdateScalarComponent (& this -> trigger_component_ , controllerInput.trigger (), 0 );
121+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> trigger_component_touch_ , controllerInput.trigger () > 0 .5f , 0 );
122+ GetDriver ()->GetInput ()->UpdateScalarComponent (& this -> grip_value_component_ , controllerInput.grip (), 0 );
123+ GetDriver ()->GetInput ()->UpdateScalarComponent (& this -> stick_x_component_ , controllerInput.thumbstick_x (), 0 );
124+ GetDriver ()->GetInput ()->UpdateScalarComponent (& this -> stick_y_component_ , controllerInput.thumbstick_y (), 0 );
125+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> button_a_component_ , controllerInput.button_1 (), 0 );
126+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> button_b_component_ , controllerInput.button_2 (), 0 );
127+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> stick_click_component_ , controllerInput.stick_click (), 0 );
128+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> system_component , controllerInput.menu_recenter (), 0 );
129+ GetDriver ()->GetInput ()->UpdateBooleanComponent (& this -> system_component_chord , controllerInput.menu_recenter (), 0 );
130130}
131131void SlimeVRDriver::TrackerDevice::BatteryMessage (messages::Battery& battery) {
132132 if (this ->device_index_ == vr::k_unTrackedDeviceIndexInvalid)
0 commit comments