alandtse / CommonLibVR

This is an experimental reverse engineered library for Skyrim VR (ported from CommonLibSSE). There are two main branches (VR) which is based on po3's using ifdefs, and NG which is an updated NG build.
MIT License
23 stars 21 forks source link

fix: fix`InputContext::GetNumDeviceMappings()` #39

Closed WaterFace closed 7 months ago

WaterFace commented 7 months ago

Previously, GetNumDeviceMappings would unconditionally return INPUT_DEVICE::kTotal = 10 when VR support is enabled, which is incorrect in non-VR versions.

Now it correctly returns 4 on SE and AE, but still 10 on VR. Also added INPUT_DEVICES::VirtualKeyboard() which returns the correct enum value for the virtual keyboard based on runtime version.

alandtse commented 7 months ago

Thanks!