mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix always using the xbox layout (reported by coverity).
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user