Avoid crash on early input events.

Not elegant, really should use a mutex or something...
This commit is contained in:
Henrik Rydgård 2021-07-05 12:37:52 +02:00
parent 633a6f612b
commit 6e76a22461

View File

@ -1392,6 +1392,11 @@ static bool AnalogStickAxis(const AxisInput &axis) {
}
bool NativeAxis(const AxisInput &axis) {
if (!screenManager) {
// Too early.
return false;
}
using namespace TiltEventProcessor;
switch (axis.axisId) {