mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:17:58 +02:00
Remove old use of connectedDevice
This commit is contained in:
parent
6c2c7f1eec
commit
251e2137d3
2 changed files with 0 additions and 3 deletions
|
@ -59,7 +59,6 @@ bool SpacemouseManager::activate() {
|
||||||
if (instance->getDeviceID() == controller::Input::INVALID_DEVICE) {
|
if (instance->getDeviceID() == controller::Input::INVALID_DEVICE) {
|
||||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
userInputMapper->registerDevice(instance);
|
userInputMapper->registerDevice(instance);
|
||||||
UserActivityLogger::getInstance().connectedDevice("controller", NAME);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -330,7 +329,6 @@ bool SpacemouseManager::RawInputEventFilter(void* msg, long* result) {
|
||||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
if (Is3dmouseAttached() && instance->getDeviceID() == controller::Input::INVALID_DEVICE) {
|
if (Is3dmouseAttached() && instance->getDeviceID() == controller::Input::INVALID_DEVICE) {
|
||||||
userInputMapper->registerDevice(instance);
|
userInputMapper->registerDevice(instance);
|
||||||
UserActivityLogger::getInstance().connectedDevice("controller", "Spacemouse");
|
|
||||||
}
|
}
|
||||||
else if (!Is3dmouseAttached() && instance->getDeviceID() != controller::Input::INVALID_DEVICE) {
|
else if (!Is3dmouseAttached() && instance->getDeviceID() != controller::Input::INVALID_DEVICE) {
|
||||||
userInputMapper->removeDevice(instance->getDeviceID());
|
userInputMapper->removeDevice(instance->getDeviceID());
|
||||||
|
|
|
@ -234,7 +234,6 @@ void ViveControllerManager::pluginUpdate(float deltaTime, const controller::Inpu
|
||||||
if (!_registeredWithInputMapper && _inputDevice->_trackedControllers > 0) {
|
if (!_registeredWithInputMapper && _inputDevice->_trackedControllers > 0) {
|
||||||
userInputMapper->registerDevice(_inputDevice);
|
userInputMapper->registerDevice(_inputDevice);
|
||||||
_registeredWithInputMapper = true;
|
_registeredWithInputMapper = true;
|
||||||
UserActivityLogger::getInstance().connectedDevice("spatial_controller", "steamVR");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue