mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix always using the xbox layout (reported by coverity).
This commit is contained in:
parent
5433e9bd19
commit
eddf16eee9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue