mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 10:15:31 +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()));
|
||||
return availableInputs;
|
||||
};
|
||||
proxy->resetDeviceBindings = [this, &_mapper = mapper, &device = _deviceID] () -> bool {
|
||||
_mapper.removeAllInputChannelsForDevice(device);
|
||||
this->assignDefaultInputMapping(_mapper);
|
||||
proxy->resetDeviceBindings = [this, &mapper] () -> bool {
|
||||
mapper.removeAllInputChannelsForDevice(_deviceID);
|
||||
this->assignDefaultInputMapping(mapper);
|
||||
return true;
|
||||
};
|
||||
mapper.registerDevice(_deviceID, proxy);
|
||||
|
|
Loading…
Reference in a new issue