mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Avoid crash on early input events.
Not elegant, really should use a mutex or something...
This commit is contained in:
parent
633a6f612b
commit
6e76a22461
@ -1392,6 +1392,11 @@ static bool AnalogStickAxis(const AxisInput &axis) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool NativeAxis(const AxisInput &axis) {
|
bool NativeAxis(const AxisInput &axis) {
|
||||||
|
if (!screenManager) {
|
||||||
|
// Too early.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
using namespace TiltEventProcessor;
|
using namespace TiltEventProcessor;
|
||||||
|
|
||||||
switch (axis.axisId) {
|
switch (axis.axisId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user