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)