1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-06 02:26:33 +00:00
sys-con/ControllerUSB/source/ControllerHelpers.cpp

47 lines
1.1 KiB
C++
Raw Normal View History

2019-11-06 22:20:58 +00:00
#include "ControllerHelpers.h"
bool DoesControllerSupport(ControllerType type, ControllerSupport supportType)
{
switch (type)
{
case CONTROLLER_XBOX360:
if (supportType == SUPPORTS_RUMBLE)
return true;
return false;
2019-11-08 18:06:02 +00:00
case CONTROLLER_XBOX360W:
if (supportType == SUPPORTS_PAIRING)
return true;
return false;
2019-11-06 22:20:58 +00:00
case CONTROLLER_XBOXONE:
switch (supportType)
{
case SUPPORTS_RUMBLE:
return true;
case SUPPORTS_BLUETOOTH:
return true;
default:
return false;
}
2019-11-09 20:22:41 +00:00
case CONTROLLER_XBOXONEW:
if (supportType == SUPPORTS_NOTHING)
return true;
return false;
2019-11-06 22:20:58 +00:00
case CONTROLLER_DUALSHOCK3:
switch (supportType)
{
case SUPPORTS_RUMBLE:
return true;
case SUPPORTS_BLUETOOTH:
return true;
case SUPPORTS_PRESSUREBUTTONS:
return true;
case SUPPORTS_SIXAXIS:
return true;
default:
return false;
}
default:
return false;
}
return false;
}