https://github.com/captainzero93/stick-drift-detect-pc
Detects stick drift from USB controllers on PC such as 360
https://github.com/captainzero93/stick-drift-detect-pc
Last synced: over 1 year ago
JSON representation
Detects stick drift from USB controllers on PC such as 360
- Host: GitHub
- URL: https://github.com/captainzero93/stick-drift-detect-pc
- Owner: captainzero93
- License: mit
- Created: 2024-11-12T13:22:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T13:31:21.000Z (over 1 year ago)
- Last Synced: 2025-01-24T01:09:57.683Z (over 1 year ago)
- Language: C#
- Size: 2.09 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Controller Drift Detector for PC
A Windows application designed to detect and measure controller stick drift.
## Features
- Real-time stick position visualization
- Drift detection and measurement
- Visual tracking of stick movement patterns
- Dead zone visualization
- Calibration system for accurate measurements
- Detailed analysis of drift magnitude
## Supported Controllers
This application supports any DirectInput compatible controllers, including:
- Xbox Controllers (when using DirectInput mode)
- PlayStation Controllers (DS4/DualShock when using DirectInput mode)
- Generic USB Game Controllers
- PC Joysticks
- Most USB/Wireless gamepads that support DirectInput
## System Requirements
- Windows 7 or later
- .NET Framework 4.8 or higher
- DirectInput compatible controller
- USB port or Bluetooth (depending on controller type)
## Required NuGet Packages
The following NuGet packages are required:
- SharpDX (v4.2.0)
- SharpDX.DirectInput (v4.2.0)
## Installation
1. Clone or download this repository
2. Open the solution in Visual Studio
3. Restore NuGet packages
4. Build and run the application
```bash
# Using Git
git clone https://github.com/captainzero93/stick-drift-detect-PC.git
```
## Usage ( Also provided a built Exe under Releases )
1. Connect your controller to your PC
2. Launch the application
3. The app will automatically detect your controller
4. Click "Start Check" to begin drift detection
5. Keep your controller still during the test
6. After 5 seconds, the app will show the results
7. The visualization will show:
- Red trail: Stick movement pattern
- Gray circle: Dead zone
- Coordinates: Current stick position
- Status: Analysis of detected drift
## How It Works
The application samples the controller's stick position over time and analyzes any unwanted movement (drift). It uses the following parameters:
- Dead Zone: 1000 units (adjustable)
- Drift Threshold: 500 units
- Sample Time: 5 seconds
- Sampling Rate: 60Hz
## Building from Source
1. Prerequisites:
- Visual Studio 2019 or later
- .NET Framework 4.8 SDK
- NuGet Package Manager
2. Build Steps:
```bash
git clone https://github.com/captainzero93/stick-drink-detect-PC.git
cd stick-drift-detect-PC
```
- Open StickDrift.sln in Visual Studio
- Restore NuGet packages
- Build solution (F5 or Ctrl+Shift+B)
## License
This project is open source and available under the MIT License.
## Support
If you encounter any issues or have questions:
- Open an issue on GitHub
- The most common issues are related to controller compatibility or drivers