keijiro / Rcam2

Remote depth camera with iPad Pro with LiDAR sensor
The Unlicense
383 stars 40 forks source link

RcamMetadata Input Handle #7

Open maowu opened 3 years ago

maowu commented 3 years ago

I am testing button and knob for 9~15, but they don't work.

Then I found problem in the MakeInputState() & UpdateState() of InputHandle.cs.

fix button and toggle value array to solve this issue _buttons[bit] ->_buttons[bit + i 8] _toggles[bit] -> _toggles[bit + i 8]

here is fixed InputHandle.cs InputHandle.cs.zip

keijiro commented 3 years ago

Thanks for pointing it out. Your solution is right. I don't have time for fixing it at the moment, I'll do it when I get available time.