mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 17:49:48 -06:00
New GCPad/Wiimote: Enabled SDL 1.2 on the Windows build to support some gamepads that weren't working with DirectInput. Made DirectInput use (and prefer) buffered data rather than polled data (some gamepads should work better). In GUI: Changed all numeric wxChoice to wxSpinCtrl (config dialog opens much faster), removed "+" buttons, made UI more compact. Fixed a few problems that were introduced with the IniFile change. Made minor changes to IniFile.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5619 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/notebook.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/spinctrl.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
@ -45,10 +46,14 @@ public:
|
||||
ControllerEmu::Extension* const extension;
|
||||
};
|
||||
|
||||
class PadSettingChoice : public wxChoice, public PadSetting
|
||||
class PadSettingChoice : public wxSpinCtrl, public PadSetting
|
||||
{
|
||||
public:
|
||||
PadSettingChoice( wxWindow* const parent, ControllerEmu::ControlGroup::Setting* const setting );
|
||||
PadSettingChoice( wxWindow* const parent, ControllerEmu::ControlGroup::Setting* const setting )
|
||||
: wxSpinCtrl(parent, -1, wxEmptyString, wxDefaultPosition
|
||||
, wxSize( 54, -1 ), 0, setting->low, setting->high, setting->value * 100)
|
||||
, value(setting->value) {}
|
||||
|
||||
void UpdateGUI();
|
||||
void UpdateValue();
|
||||
|
||||
@ -167,6 +172,7 @@ public:
|
||||
void DeleteProfile( wxCommandEvent& event );
|
||||
|
||||
void ConfigControl( wxCommandEvent& event );
|
||||
void ClearControl( wxCommandEvent& event );
|
||||
void DetectControl( wxCommandEvent& event );
|
||||
|
||||
void ConfigExtension( wxCommandEvent& event );
|
||||
|
Reference in New Issue
Block a user