diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2010-04-01 04:33:07 +0000 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2010-04-01 04:33:07 +0000 |
| commit | c3df2e93d788d6a7bbc2e3c1913983059c7a5fa6 (patch) | |
| tree | 67e64f2f887d87bddf4283b661c6181d135fcb14 /Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp | |
| parent | 4e1719e98b31668f35b6d40ed01213005eb97ba4 (diff) | |
NewGCPad: Sliders should be functional on DirectInput, also Axes renamed. XInput devices won't have their limited DirectInput counterparts listed. Minor cleanup, warning removal.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5260 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp index 9649fd6bfe..d865889014 100644 --- a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp @@ -371,26 +371,12 @@ void ControllerInterface::ControlQualifier::FromControl(const ControllerInterfac // ControlQualifier = = Device :: Control*
//
// check if a control qualifier matches a device control
-// if qualifier name is /.../ form, uses a regular expression match
// also |control1|control2| form, || matches all
//
bool ControllerInterface::ControlQualifier::operator==(const ControllerInterface::Device::Control* const control) const
{
if ( name.size() )
{
-#ifdef CIFACE_USE_REGEX
- if ( '/' == name[0] && '/' == (*name.rbegin()) ) // check if regex
- {
- wxRegEx re(
- wxString::FromAscii(name.substr( 1, name.size()-2).c_str()).Prepend(wxT("^(")).Append(wxT(")$"))
- , wxRE_ADVANCED | wxRE_EXTENDED | wxRE_NOSUB | wxRE_ICASE );
-
- if ( re.IsValid() )
- return re.Matches( wxString::FromAscii( control->GetName().c_str() ) );
- else
- return true;
- }
-#endif
if ( '|' == name[0] && '|' == (*name.rbegin()) ) // check if using |button1|button2| format
{
return ( name.find( '|' + control->GetName() + '|' ) != name.npos || "||" == name );
|
