diff options
author | Andreas Hagmann <andreas@macbookpro.home> | 2013-11-16 19:25:06 +0100 |
---|---|---|
committer | Andreas Hagmann <andreas@macbookpro.home> | 2013-11-16 19:25:06 +0100 |
commit | 0c7f36069d8524cf1f7200f0389c9a20d4048342 (patch) | |
tree | 6dfcda1525c0c0f5d32771586f3ab1cd7e6e089f /gamepad_setup.c | |
download | vdr-plugin-gamepad-0c7f36069d8524cf1f7200f0389c9a20d4048342.tar.gz vdr-plugin-gamepad-0c7f36069d8524cf1f7200f0389c9a20d4048342.tar.bz2 |
initial commit
Diffstat (limited to 'gamepad_setup.c')
-rwxr-xr-x | gamepad_setup.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gamepad_setup.c b/gamepad_setup.c new file mode 100755 index 0000000..fb73030 --- /dev/null +++ b/gamepad_setup.c @@ -0,0 +1,26 @@ +/* + * gamepad.c: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ +#include <vdr/plugin.h> + +#include "gamepad_setup.h" +#include "gamepad_config.h" + +cGamepadSetup::cGamepadSetup() +{ + data = gamepadConfig; + + Add(new cMenuEditStrItem(tr("Joystick Device"), data.device, sizeof(data.device))); + Add(new cMenuEditBoolItem(tr("Test Mode (shows generic event IDs on OSD)"), &data.testMode, tr("off"), tr("on"))); +} + +void cGamepadSetup::Store(void) +{ + gamepadConfig = data; + SetupStore("JoystickDevice", data.device); + SetupStore("TestMode", data.testMode); +} |