mirror of
https://github.com/cathery/sys-con.git
synced 2025-03-29 22:20:09 +00:00
Remove fluff
This commit is contained in:
parent
4ba875800c
commit
1155b488be
@ -128,13 +128,6 @@ private:
|
||||
|
||||
Dualshock3ButtonData m_buttonData;
|
||||
|
||||
/*
|
||||
int8_t kLeftThumbDeadzone = 10;
|
||||
int8_t kRightThumbDeadzone = 10;
|
||||
int8_t kTriggerMax = 0;
|
||||
int8_t kTriggerDeadzone = 0;
|
||||
*/
|
||||
|
||||
public:
|
||||
Dualshock3Controller(std::unique_ptr<IUSBDevice> &&interface);
|
||||
virtual ~Dualshock3Controller();
|
||||
|
@ -51,13 +51,6 @@ private:
|
||||
|
||||
Dualshock4ButtonData m_buttonData;
|
||||
|
||||
/*
|
||||
int16_t kLeftThumbDeadzone = 2000; //7849;
|
||||
int16_t kRightThumbDeadzone = 2000; //8689;
|
||||
uint16_t kTriggerMax = 0; //1023;
|
||||
uint16_t kTriggerDeadzone = 0; //120;
|
||||
*/
|
||||
|
||||
public:
|
||||
Dualshock4Controller(std::unique_ptr<IUSBDevice> &&interface);
|
||||
virtual ~Dualshock4Controller();
|
||||
|
@ -87,13 +87,6 @@ private:
|
||||
IUSBEndpoint *m_outPipe = nullptr;
|
||||
|
||||
Xbox360ButtonData m_buttonData;
|
||||
/*
|
||||
|
||||
int16_t kLeftThumbDeadzone = 8000; //7849;
|
||||
int16_t kRightThumbDeadzone = 8000; //8689;
|
||||
uint16_t kTriggerMax = 0; //1023;
|
||||
uint16_t kTriggerDeadzone = 0; //120;
|
||||
*/
|
||||
|
||||
public:
|
||||
Xbox360Controller(std::unique_ptr<IUSBDevice> &&interface);
|
||||
|
@ -83,14 +83,6 @@ private:
|
||||
|
||||
//Meant to be incremented with each out packet
|
||||
uint8_t m_outPacketSerial = 0;
|
||||
/*
|
||||
|
||||
int16_t kLeftThumbDeadzone = 2500; //7849;
|
||||
int16_t kRightThumbDeadzone = 3500; //8689;
|
||||
uint16_t kTriggerMax = 0; //1023;
|
||||
uint16_t kTriggerDeadzone = 0; //120;
|
||||
|
||||
*/
|
||||
|
||||
public:
|
||||
XboxOneController(std::unique_ptr<IUSBDevice> &&interface);
|
||||
|
@ -159,8 +159,7 @@ void Dualshock4Controller::NormalizeAxis(int16_t x,
|
||||
// magnitude value of 0.0 to 1.0
|
||||
//ratio = (currentValue / maxValue) / realValue
|
||||
float ratio = (magnitude / (32767 - real_deadzone)) / real_magnitude;
|
||||
// Y is negated because xbox controllers have an opposite sign from
|
||||
// the 'standard controller' recommendations.
|
||||
|
||||
*x_out = x_val * ratio;
|
||||
*y_out = y_val * ratio;
|
||||
}
|
||||
|
@ -155,8 +155,7 @@ void Xbox360Controller::NormalizeAxis(int16_t x,
|
||||
// magnitude value of 0.0 to 1.0
|
||||
//ratio = (currentValue / maxValue) / realValue
|
||||
float ratio = (magnitude / (32767 - real_deadzone)) / real_magnitude;
|
||||
// Y is negated because xbox controllers have an opposite sign from
|
||||
// the 'standard controller' recommendations.
|
||||
|
||||
*x_out = x_val * ratio;
|
||||
*y_out = y_val * ratio;
|
||||
}
|
||||
|
@ -177,8 +177,7 @@ void Xbox360WirelessController::NormalizeAxis(int16_t x,
|
||||
// magnitude value of 0.0 to 1.0
|
||||
//ratio = (currentValue / maxValue) / realValue
|
||||
float ratio = (magnitude / (32767 - real_deadzone)) / real_magnitude;
|
||||
// Y is negated because xbox controllers have an opposite sign from
|
||||
// the 'standard controller' recommendations.
|
||||
|
||||
*x_out = x_val * ratio;
|
||||
*y_out = y_val * ratio;
|
||||
}
|
||||
|
@ -131,8 +131,7 @@ void XboxController::NormalizeAxis(int16_t x,
|
||||
// magnitude value of 0.0 to 1.0
|
||||
//ratio = (currentValue / maxValue) / realValue
|
||||
float ratio = (magnitude / (32767 - real_deadzone)) / real_magnitude;
|
||||
// Y is negated because xbox controllers have an opposite sign from
|
||||
// the 'standard controller' recommendations.
|
||||
|
||||
*x_out = x_val * ratio;
|
||||
*y_out = y_val * ratio;
|
||||
}
|
||||
|
@ -233,8 +233,7 @@ void XboxOneController::NormalizeAxis(int16_t x,
|
||||
// magnitude value of 0.0 to 1.0
|
||||
//ratio = (currentValue / maxValue) / realValue
|
||||
float ratio = (magnitude / (32767 - real_deadzone)) / real_magnitude;
|
||||
// Y is negated because xbox controllers have an opposite sign from
|
||||
// the 'standard controller' recommendations.
|
||||
|
||||
*x_out = x_val * ratio;
|
||||
*y_out = y_val * ratio;
|
||||
}
|
||||
|
@ -26,20 +26,6 @@ Result SwitchAbstractedPadHandler::Initialize()
|
||||
if (R_FAILED(rc))
|
||||
return rc;
|
||||
|
||||
/*
|
||||
svcSleepThread(1e+7L);
|
||||
hidScanInput();
|
||||
|
||||
//WriteToLog("Is last offline id connected? ", hidIsControllerConnected(lastOfflineID));
|
||||
//WriteToLog("Last offline id type: ", hidGetControllerType(lastOfflineID));
|
||||
|
||||
Result rc2 = hidInitializeVibrationDevices(&m_vibrationDeviceHandle, 1, lastOfflineID, hidGetControllerType(lastOfflineID));
|
||||
if (R_SUCCEEDED(rc2))
|
||||
InitOutputThread();
|
||||
else
|
||||
WriteToLog("Failed to iniitalize vibration device with error ", rc2);
|
||||
*/
|
||||
|
||||
if (DoesControllerSupport(m_controllerHandler.GetController()->GetType(), SUPPORTS_PAIRING))
|
||||
{
|
||||
rc = InitOutputThread();
|
||||
|
Loading…
x
Reference in New Issue
Block a user