Set g_Config.bNumberRealWiimotes as volatile. Otherwise connected real wiimotes...
[dolphin.git] / Source / Plugins / Plugin_Wiimote / Src / Config.h
blob06c30dc4bc0e7092a7334ab327d66497f649e675
1 // Copyright (C) 2003 Dolphin Project.
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, version 2.0.
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU General Public License 2.0 for more details.
12 // A copy of the GPL 2.0 should have been included with the program.
13 // If not, see http://www.gnu.org/licenses/
15 // Official SVN repository and contact information can be found at
16 // http://code.google.com/p/dolphin-emu/
18 #ifndef _PLUGIN_WIIMOTE_CONFIG_H
19 #define _PLUGIN_WIIMOTE_CONFIG_H
21 #if defined(HAVE_X11) && HAVE_X11
22 #include <X11/keysym.h>
23 #endif
25 struct Config
27 Config();
28 void Load();
29 void LoadIR();
30 void Save();
32 // For dialog sync
33 int CurrentPage;
35 // Real Wiimote
36 bool bUpdateRealWiimote, bUnpairRealWiimote, bPairRealWiimote;
37 volatile int bNumberRealWiimotes;
38 int bNumberEmuWiimotes, bWiiReadTimeout;
39 int iIRLeft, iIRTop, iIRWidth, iIRHeight, iIRLevel;
40 int iAccNeutralX, iAccNeutralY, iAccNeutralZ;
41 int iAccNunNeutralX, iAccNunNeutralY, iAccNunNeutralZ;
43 // Screen size settings
44 bool bKeepAR43, bKeepAR169, bCrop;
47 extern Config g_Config;
48 #endif // _PLUGIN_WIIMOTE_CONFIG_H