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