mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove (probably) unnecessary special case for axis value = 0.
This commit is contained in:
parent
265a9021fd
commit
b3be6db3ae
1 changed files with 1 additions and 9 deletions
|
@ -119,15 +119,7 @@ bool ScreenManager::key(const KeyInput &key) {
|
|||
|
||||
void ScreenManager::axis(const AxisInput &axis) {
|
||||
std::lock_guard<std::recursive_mutex> guard(inputLock_);
|
||||
// Send center axis to every screen layer.
|
||||
// TODO: Do we still need this?
|
||||
if (axis.value == 0) {
|
||||
for (auto &layer : stack_) {
|
||||
layer.screen->UnsyncAxis(axis);
|
||||
}
|
||||
} else if (!stack_.empty()) {
|
||||
stack_.back().screen->UnsyncAxis(axis);
|
||||
}
|
||||
stack_.back().screen->UnsyncAxis(axis);
|
||||
}
|
||||
|
||||
void ScreenManager::deviceLost() {
|
||||
|
|
Loading…
Add table
Reference in a new issue