- Windows API
- Beckhoff TwinCAT and a running ADS Router
- Microsoft Visual C++ Compiler
- XInput API
Before building the executable, ensure that the string specifying the location of ST_TcXboxController
is set correctly i.e. char plcVar[] = {"MAIN.xbox"};
inside main.cpp
source file.
mkdir build && cd build
cmake .. -G "Visual Studio 15 2017 Win64"
cmake --build . --config Release
- Open a new terminal as Administrator and create a new Windows Service using:
sc create "TcXboxController" binPath=<path-to-binary>\TcXboxController.exe
- Start and stop the service using the Windows GUI or by executing:
sc start TcXboxController
orsc stop TcXboxController
Follow these instructions https://www.drivereasy.com/knowledge/solved-xbox-acc-driver-issues-on-windows-10-8-7/