[HID] Optional guide button support.

Maybe this is interesting to some games.
This commit is contained in:
Joel Linn
2020-04-20 15:03:37 +02:00
committed by Rick Gibbed
parent fc96195656
commit c8da7fbfe4
6 changed files with 41 additions and 15 deletions

View File

@@ -14,6 +14,7 @@
#include <xinput.h> // NOLINT(build/include_order)
#include "xenia/base/logging.h"
#include "xenia/hid/hid_flags.h"
namespace xe {
@@ -71,6 +72,12 @@ X_STATUS XInputInputDriver::Setup() {
XInputGetKeystroke_ = xigk;
XInputSetState_ = xiss;
XInputEnable_ = xie;
if (cvars::guide_button) {
// Theoretically there is XInputGetStateEx
// but thats undocumented and milage varies.
XELOGW("XInput: Guide button support is not implemented.");
}
return X_STATUS_SUCCESS;
}