Fix geometry pipeline; attempt to fix motion controls

This commit is contained in:
Hamish Milne 2020-01-17 07:58:40 +00:00 committed by zhupengfei
parent 35c3ca995c
commit 0effb229cd
2 changed files with 17 additions and 7 deletions

View file

@ -40,7 +40,9 @@ void Module::serialize(Archive& ar, const unsigned int) {
ar& next_gyroscope_index;
ar& enable_accelerometer_count;
ar& enable_gyroscope_count;
ReloadInputDevices();
if (Archive::is_loading::value) {
LoadInputDevices();
}
// Pad state not needed as it's always updated
// Update events are set in the constructor
// Devices are set from the implementation (and are stateless afaik)