diff options
| author | louis <louis.braun@gmx.de> | 2016-05-29 10:07:28 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2016-05-29 10:07:28 +0200 |
| commit | 87f3d895f7026b8b39944042cafcd50fdd14028a (patch) | |
| tree | 77f25bc9e7458a6b7e0f6129ffff08d8ac1d344d /coreengine/attribute.c | |
| parent | 75668612bede1c9971e6cb77eda396525d1019b1 (diff) | |
| download | vdr-plugin-skindesigner-87f3d895f7026b8b39944042cafcd50fdd14028a.tar.gz vdr-plugin-skindesigner-87f3d895f7026b8b39944042cafcd50fdd14028a.tar.bz2 | |
left / right keys in zappilot configurable in skin
Diffstat (limited to 'coreengine/attribute.c')
| -rw-r--r-- | coreengine/attribute.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 ***************************************************************************/ |
