From 4e3e5476dc8c43c79a0db2d8d8aae162b63d37ee Mon Sep 17 00:00:00 2001 From: Tristan Rowley Date: Sat, 29 Feb 2020 12:40:37 +0000 Subject: [PATCH] Make numpad input use actions the same as midi input etc, so that plugins can extend numpad functionality --- user_input/numpad_input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_input/numpad_input.py b/user_input/numpad_input.py index 0093a02..aae0d97 100644 --- a/user_input/numpad_input.py +++ b/user_input/numpad_input.py @@ -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