From d009dd01fffb75d9714f924e092df3f133369be1 Mon Sep 17 00:00:00 2001 From: cathery Date: Sun, 5 Apr 2020 12:23:58 +0300 Subject: [PATCH] Add dualshock 4 ControllerSupports --- source/ControllerLib/ControllerHelpers.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/ControllerLib/ControllerHelpers.cpp b/source/ControllerLib/ControllerHelpers.cpp index 3f43b91..621f6fb 100644 --- a/source/ControllerLib/ControllerHelpers.cpp +++ b/source/ControllerLib/ControllerHelpers.cpp @@ -40,6 +40,18 @@ bool DoesControllerSupport(ControllerType type, ControllerSupport supportType) default: return false; } + case CONTROLLER_DUALSHOCK4: + switch (supportType) + { + case SUPPORTS_RUMBLE: + return true; + case SUPPORTS_BLUETOOTH: + return true; + case SUPPORTS_SIXAXIS: + return true; + default: + return false; + } default: return false; }