From ac9d3e13b6345a460dadcd33a72f3434b6219b0f Mon Sep 17 00:00:00 2001 From: WhiteMagic Date: Fri, 2 Feb 2018 22:42:19 +1100 Subject: [PATCH] Virtual button for standard containers fixed --- gremlin/base_classes.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gremlin/base_classes.py b/gremlin/base_classes.py index fa00557b..55a8c948 100644 --- a/gremlin/base_classes.py +++ b/gremlin/base_classes.py @@ -530,17 +530,18 @@ def generate_callbacks(self): execution_graph.VirtualButtonCallback(self), gremlin.event_handler.Event( gremlin.common.InputType.VirtualButton, - callbacks[-1][0].virtual_button.identifier, + callbacks[-1].callback.virtual_button.identifier, 9999, 9999, is_pressed=True, raw_value=True ) )) - callbacks.append(execution_graph.CallbackData( - execution_graph.ContainerCallback(self), - None - )) + else: + callbacks.append(execution_graph.CallbackData( + execution_graph.ContainerCallback(self), + None + )) return callbacks