mirror of
https://github.com/lubosz/overte.git
synced 2025-06-05 06:51:11 +02:00
fixed lambda capture
This commit is contained in:
parent
0769593ca8
commit
0e8ec81837
1 changed files with 3 additions and 3 deletions
|
@ -173,9 +173,9 @@ void KeyboardMouseDevice::registerToUserInputMapper(UserInputMapper& mapper) {
|
||||||
availableInputs.append(UserInputMapper::InputPair(makeInput(Qt::Key_Space), QKeySequence(Qt::Key_Space).toString()));
|
availableInputs.append(UserInputMapper::InputPair(makeInput(Qt::Key_Space), QKeySequence(Qt::Key_Space).toString()));
|
||||||
return availableInputs;
|
return availableInputs;
|
||||||
};
|
};
|
||||||
proxy->resetDeviceBindings = [this, &_mapper = mapper, &device = _deviceID] () -> bool {
|
proxy->resetDeviceBindings = [this, &mapper] () -> bool {
|
||||||
_mapper.removeAllInputChannelsForDevice(device);
|
mapper.removeAllInputChannelsForDevice(_deviceID);
|
||||||
this->assignDefaultInputMapping(_mapper);
|
this->assignDefaultInputMapping(mapper);
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
mapper.registerDevice(_deviceID, proxy);
|
mapper.registerDevice(_deviceID, proxy);
|
||||||
|
|
Loading…
Reference in a new issue