FF13Fix/d3d9ex/XInputManager.h
2020-01-22 19:34:48 -03:00

16 lines
517 B
C++

#pragma once
class XInputManager
{
float* vibration_address_high_frequency = NULL;
float* vibration_address_low_frequency = NULL;
DWORD controllerId = -1;
std::thread xinputThread;
public:
XInputManager(byte** base_controller_input_address_ptr);
void Run(byte** base_controller_input_address_ptr);
void WaitAndSetVibrationAddress(byte** base_controller_input_address_ptr);
void VibrationLoop();
void SetControllerVibration(const WORD& leftMotorVibration, const WORD& rightMotorVibration);
};