Closed MasonSakai closed 11 months ago
An update, the error is: "Error while enabling device offsets: Device not found" Of note, although this is the only area where it's crashing, the program is failing to enable offsets elsewhere in the program...
Though on that, I've had to, on both devices, set modal to false on all input emulator calls or I get a "vrinputemulator::vrinputemulator_notfound" exception, which may be why it's not crashing till the getDeviceOffsets call.
No, it's properly making the virtual controllers...
Does there need to be a dll or something for input emulator present for it to connect, or is this just oddness with my desktop? I've taken the startup code from Playspace Mover and it's saying it's connecting successfully, so...
Turns out it was because I did not have the fixed version on the desktop (despite me remembering that I did...). That fixed the issue.
For some reason, only on my desktop (my laptop where I'm developing it doesn't have this issue), getDeviceOffsets is throwing a delayed error. It doesn't happen on it's call, but shortly after.
The weirdest thing is this isn't an indication of Input Emulator not working at all since it connects and makes the virtual trackers, but it halts on this. I've also confirmed input emulator works by itself through the UI (and of course everything works on the laptop it's being developed on)
`void UpdateRealHardwarePositions() { if (!active) return; for (vr::TrackedDeviceIndex_t unDevice = 0; unDevice < vr::k_unMaxTrackedDeviceCount; unDevice++) { if (!m_VRSystem->IsTrackedDeviceConnected(unDevice)) continue;
}`
an image from the debugging, strangely it's now exiting the function before aborting (but stack trace is still attributing it to getDeviceOffsets)![tmp](https://github.com/matzman666/OpenVR-InputEmulator/assets/136765578/6cbe1e8f-7e45-47da-87ae-66f04ee80d07)