summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerjoystick.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-12-27 15:27:29 +0200
committerakleshchev <117672381+akleshchev@users.noreply.github.com>2023-10-23 15:26:19 +0300
commit6481d36c69dbcafdb23cb27dc07aa047b3d7d64e (patch)
tree151cb083c15cd9ddb6107abbbdf5e228fcd3fdac /indra/newview/llviewerjoystick.cpp
parent453a4a13f87d5cbfa6150a4f76f9e976692b54e6 (diff)
SL-13610 [MAC] WIP filter out incompatible devices
Diffstat (limited to 'indra/newview/llviewerjoystick.cpp')
-rw-r--r--indra/newview/llviewerjoystick.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llviewerjoystick.cpp b/indra/newview/llviewerjoystick.cpp
index e182b31ed2..95cfa5cd78 100644
--- a/indra/newview/llviewerjoystick.cpp
+++ b/indra/newview/llviewerjoystick.cpp
@@ -399,6 +399,7 @@ void LLViewerJoystick::init(bool autoenable)
long id;
memcpy(&id, &mLastDeviceUUID[0], size);
+ // todo: search by manufcturer instead, locid might have changed
NDOF_Device *device = ndof_idsearch(id);
if (device)
{
@@ -500,6 +501,7 @@ void LLViewerJoystick::initDevice(LLSD &guid)
NDOF_Device *device = ndof_idsearch(id);
if (device)
{
+ // todo: search by manufcturer instead, locid might have changed
if (ndof_init_first(device, nullptr))
{
mDriverState = JDS_INITIALIZING;