Skip to content

Commit

Permalink
Analog trigger values from index finger (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-vrtech committed Apr 14, 2021
1 parent 61bfbab commit a82cbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LucidGloves/src/DeviceDriver/KnuckleDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void KnuckleDeviceDriver::StartDevice() {
vr::VRDriverInput()->UpdateBooleanComponent(m_inputComponentHandles[ComponentIndex::THUMBSTICK_TOUCH], datas.joyButton, 0);

vr::VRDriverInput()->UpdateBooleanComponent(m_inputComponentHandles[ComponentIndex::TRIGGER_CLICK], datas.trgButton, 0);
vr::VRDriverInput()->UpdateScalarComponent(m_inputComponentHandles[ComponentIndex::TRIGGER_VALUE], datas.trgButton, 0);
vr::VRDriverInput()->UpdateScalarComponent(m_inputComponentHandles[ComponentIndex::TRIGGER_VALUE], datas.flexion[1], 0);

vr::VRDriverInput()->UpdateBooleanComponent(m_inputComponentHandles[ComponentIndex::A_CLICK], datas.aButton, 0);
vr::VRDriverInput()->UpdateBooleanComponent(m_inputComponentHandles[ComponentIndex::A_TOUCH], datas.aButton, 0);
Expand Down

0 comments on commit a82cbcd

Please sign in to comment.