dolphin/Source/Core/InputCommon/ControllerEmu/ControlGroup/PrimeHackModes.cpp
SirMangler 94c36606bd PrimeHack can now compile and run safely on all platforms.
This doesn't mean it will run perfectly on all platforms, Mac still doesn't have mouse support.
2020-12-10 18:13:32 +00:00

25 lines
664 B
C++

#include "InputCommon/ControllerEmu/ControlGroup/PrimeHackModes.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
namespace ControllerEmu
{
PrimeHackModes::PrimeHackModes(const std::string& name_) : ControlGroup(name_, GroupType::PrimeHack)
{
}
// Always return controller mode for platforms with input APIs we don't support.
int PrimeHackModes::GetSelectedDevice() const
{
#if defined CIFACE_USE_WIN32 || defined CIFACE_USE_XLIB
return m_selection_setting.GetValue();
#else
return 1;
#endif
}
void PrimeHackModes::SetSelectedDevice(int val)
{
m_selection_setting.SetValue(val);
}
} // namespace ControllerEmu