3
0
Fork 0
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:
Sam Gondelman 2015-06-11 09:41:59 -07:00
parent 0769593ca8
commit 0e8ec81837

View file

@ -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);