mirror of
https://github.com/lubosz/overte.git
synced 2025-08-13 16:02:24 +02:00
Bit of cleanup
This commit is contained in:
parent
c53c0ec53f
commit
e630f3072e
3 changed files with 3 additions and 3 deletions
|
@ -206,7 +206,7 @@ namespace controller {
|
||||||
void ScriptingInterface::updateMaps() {
|
void ScriptingInterface::updateMaps() {
|
||||||
QVariantMap newHardware;
|
QVariantMap newHardware;
|
||||||
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
|
||||||
auto devices = userInputMapper->getDevices();
|
const auto& devices = userInputMapper->getDevices();
|
||||||
for (const auto& deviceMapping : devices) {
|
for (const auto& deviceMapping : devices) {
|
||||||
auto deviceID = deviceMapping.first;
|
auto deviceID = deviceMapping.first;
|
||||||
if (deviceID != userInputMapper->getStandardDeviceID()) {
|
if (deviceID != userInputMapper->getStandardDeviceID()) {
|
||||||
|
|
|
@ -100,7 +100,7 @@ namespace controller {
|
||||||
void setSensorToWorldMat(glm::mat4 sensorToWorldMat) { _sensorToWorldMat = sensorToWorldMat; }
|
void setSensorToWorldMat(glm::mat4 sensorToWorldMat) { _sensorToWorldMat = sensorToWorldMat; }
|
||||||
glm::mat4 getSensorToWorldMat() { return _sensorToWorldMat; }
|
glm::mat4 getSensorToWorldMat() { return _sensorToWorldMat; }
|
||||||
|
|
||||||
DevicesMap getDevices() { return _registeredDevices; }
|
const DevicesMap& getDevices() { return _registeredDevices; }
|
||||||
uint16 getStandardDeviceID() const { return STANDARD_DEVICE; }
|
uint16 getStandardDeviceID() const { return STANDARD_DEVICE; }
|
||||||
InputDevice::Pointer getStandardDevice() { return _registeredDevices[getStandardDeviceID()]; }
|
InputDevice::Pointer getStandardDevice() { return _registeredDevices[getStandardDeviceID()]; }
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ InputPluginList getInputPlugins() {
|
||||||
|
|
||||||
InputPluginList result;
|
InputPluginList result;
|
||||||
for (int i = 0; PLUGIN_POOL[i]; ++i) {
|
for (int i = 0; PLUGIN_POOL[i]; ++i) {
|
||||||
InputPlugin * plugin = PLUGIN_POOL[i];
|
InputPlugin* plugin = PLUGIN_POOL[i];
|
||||||
if (plugin->isSupported()) {
|
if (plugin->isSupported()) {
|
||||||
plugin->init();
|
plugin->init();
|
||||||
result.push_back(InputPluginPointer(plugin));
|
result.push_back(InputPluginPointer(plugin));
|
||||||
|
|
Loading…
Reference in a new issue