Emulated Wiimote: Added option to use analog controls for the Nunchuck stick

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2243 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-02-15 02:01:43 +00:00
parent ae9bb905bf
commit 34dbb40ef5
11 changed files with 303 additions and 120 deletions

View File

@ -18,6 +18,7 @@
#ifndef _CONFIG_H
#define _CONFIG_H
struct Config
{
Config();
@ -32,17 +33,26 @@ struct Config
struct PadTrigger
{
enum ETriggerType
{
TRIGGER_OFF = 0,
KEYBOARD,
ANALOG1,
ANALOG2,
TRIGGER
};
int Type;
PadRange Range;
};
enum ETriggerType
struct PadNunchuck
{
TRIGGER_OFF = 0,
KEYBOARD,
ANALOG1,
ANALOG2,
TRIGGER
enum ENunchuckStick
{
KEYBOARD,
ANALOG1,
ANALOG2
};
int Type;
};
// Emulated Wiimote
@ -58,6 +68,7 @@ struct Config
// Gamepad
bool bNoTriggerFilter;
PadTrigger Trigger;
PadNunchuck Nunchuck;
};
extern Config g_Config;