From 87f3d895f7026b8b39944042cafcd50fdd14028a Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 29 May 2016 10:07:28 +0200 Subject: left / right keys in zappilot configurable in skin --- coreengine/attribute.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'coreengine/attribute.c') diff --git a/coreengine/attribute.c b/coreengine/attribute.c index d92cb9b..a1c3ec6 100644 --- a/coreengine/attribute.c +++ b/coreengine/attribute.c @@ -339,6 +339,14 @@ void cAttributes::SetDirection(int id, const char *val) { attribs[id] = (int)direction; } +void cAttributes::SetButton(int id, const char *val) { + eButtonType button = eButtonType::none; + if (!strcmp(val, "left")) + button = eButtonType::left; + else if (!strcmp(val, "right")) + button = eButtonType::right; + attribs[id] = (int)button; +} /*************************************************************************** * Private Functions ***************************************************************************/ -- cgit v1.2.3