forked from Mirrorlandia_minetest/minetest
Fix always using the xbox layout (reported by coverity).
This commit is contained in:
parent
5433e9bd19
commit
eddf16eee9
@ -186,7 +186,7 @@ void JoystickController::onJoystickConnect(const std::vector<irr::SJoystickInfo>
|
||||
}
|
||||
|
||||
void JoystickController::setLayoutFromControllerName(std::string name) {
|
||||
if (lowercase(name).find("xbox") >= 0) {
|
||||
if (lowercase(name).find("xbox") != std::string::npos) {
|
||||
m_layout = create_xbox_layout();
|
||||
} else {
|
||||
m_layout = create_default_layout();
|
||||
|
Loading…
Reference in New Issue
Block a user