summaryrefslogtreecommitdiff
path: root/gamepad_setup.c
blob: fb7303075ce81215176df2aea3f6d4723451b17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
}