From c2f15ff47c6b203be88a9ddab24fd8a5db3ceba5 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 21 Mar 2019 01:27:57 -0400 Subject: [PATCH] [Joystick] Detect xBOx cOntrOLLers in ANY cAsE --- indra/newview/llviewerjoystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/llviewerjoystick.cpp b/indra/newview/llviewerjoystick.cpp index d558988c9..1dec47062 100644 --- a/indra/newview/llviewerjoystick.cpp +++ b/indra/newview/llviewerjoystick.cpp @@ -42,6 +42,7 @@ #include "llfocusmgr.h" #include "rlvhandler.h" +#include #include // ---------------------------------------------------------------------------- @@ -85,8 +86,7 @@ bool isOUYA(const std::string& desc) { return desc.find("OUYA") != std::string:: bool isXboxLike(const std::string& desc) { - return desc.find("Xbox") != std::string::npos - || isOUYA(desc); + return boost::algorithm::icontains(desc, "xbox") || isOUYA(desc); } bool isDS3Like(const std::string& desc)