Make numpad input use actions the same as midi input etc, so that plugins can extend numpad functionality

This commit is contained in:
Tristan Rowley
2020-02-29 12:40:37 +00:00
parent 03d8a1fd66
commit 4e3e5476dc

View File

@@ -61,9 +61,9 @@ class NumpadInput(object):
print('the action being called is {}'.format(this_mapping[mode][is_function]))
if value != -1:
getattr(self.actions, this_mapping[mode][is_function])(value)
self.actions.call_method_name(this_mapping[mode][is_function])(value)
else:
getattr(self.actions, this_mapping[mode][is_function])()
self.actions.call_method_name(this_mapping[mode][is_function])()
if is_function and self.data.settings['sampler']['FUNC_GATED']['value'] == 'off':
self.data.function_on = False