mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Android: Disable input device sensor input due to crash
This commit is contained in:
parent
1788a797e7
commit
75fb1a7edf
1 changed files with 7 additions and 1 deletions
|
@ -89,7 +89,13 @@ public class DolphinSensorEventListener implements SensorEventListener
|
||||||
{
|
{
|
||||||
mSensorManager = inputDevice.getSensorManager();
|
mSensorManager = inputDevice.getSensorManager();
|
||||||
|
|
||||||
addSensors();
|
// TODO: There is a bug where after suspending sensors, onSensorChanged can get called for
|
||||||
|
// a sensor that we never registered as a listener for. The way our code is currently written,
|
||||||
|
// this causes a NullPointerException, but if we checked for null we would instead have the
|
||||||
|
// problem of being spammed with onSensorChanged calls even though the sensor shouldn't be
|
||||||
|
// enabled. For now, let's comment out the ability to use InputDevice sensors.
|
||||||
|
|
||||||
|
//addSensors();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue