summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-07-20 21:06:07 +0200
committerJosJuice <josjuice@gmail.com>2024-07-28 11:29:02 +0200
commit7b0a7f15b08bf59437627e33946f2c301948317a (patch)
tree6c4ba98fbb08f8e28c3750dba2d88e1609b630a4 /Source/Core/InputCommon/ControlReference
parent87b7009c126e7792627e2eb4e5a8be52a0bc4586 (diff)
Android: Use structural equality for sensorDetails
To fix the crash in input device sensor handling, we should look up Sensors using structural equality. Unfortunately, Sensor.equals implements referential equality, and HashMap doesn't let us provide a custom comparator. Because the number of sensors is relatively small, and because we have a reason to keep a sorted list of sensors around anyway, let's switch from HashMap to ArrayList.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference')
0 files changed, 0 insertions, 0 deletions