Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions JoyShockLibrary/JoyShockLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,8 @@ JSL_SETTINGS JslGetControllerInfoAndSettings(int deviceId)
settings.isConnected = true;
settings.isCalibrating = jc->use_continuous_calibration;
settings.autoCalibrationEnabled = jc->motion.GetCalibrationMode() != GamepadMotionHelpers::CalibrationMode::Manual;
settings.isWired = jc->is_usb;
settings.controllerPath = jc->path;

switch (jc->controller_type)
{
Expand Down
4 changes: 4 additions & 0 deletions JoyShockLibrary/JoyShockLibrary.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// JoyShockLibrary.h - Contains declarations of functions
#pragma once

#include <string>

#if _MSC_VER // this is defined when compiling with Visual Studio
#define JOY_SHOCK_API __declspec(dllexport) // Visual Studio needs annotating exported functions with this
#else
Expand Down Expand Up @@ -134,10 +136,12 @@ typedef struct JSL_SETTINGS {
int colour = 0;
int playerNumber = 0;
int controllerType = 0;
std::string controllerPath;
int splitType = 0;
bool isCalibrating = false;
bool autoCalibrationEnabled = false;
bool isConnected = false;
bool isWired = false;
} JSL_SETTINGS;

extern "C" JOY_SHOCK_API int JslConnectDevices();
Expand Down