A real-time web-based visualization tool for Xbox controller inputs using Flask, SocketIO, and HTML5. This application provides a visual representation of controller button presses and analog stick movements through an intuitive web interface.
- Real-time visualization of Xbox controller inputs
- Support for:
- A, B, X, Y buttons with color-coded feedback
- Left and right analog sticks with position tracking
- Visual feedback for button presses
- Debug console showing detailed controller events
- Start/Stop functionality for controller monitoring
- Cross-platform compatibility
- Python 3.x
- Xbox controller (or compatible gamepad)
- Modern web browser
- Clone the repository:
git clone [repository-url]
cd xbox-controller-viewer- Install the required Python packages:
pip install flask flask-socketio inputs- Start the server:
python controller-Vtest.py- Open your web browser and navigate to:
http://localhost:5000
- Click the "Start Controller" button to begin monitoring controller inputs
- Connect your Xbox controller if not already connected
- Interact with your controller to see real-time visualization
- Backend: Flask + SocketIO for real-time communication
- Frontend: HTML5, CSS3, JavaScript
- Controller Input: Python
inputslibrary for gamepad event handling - Communication: WebSocket protocol for low-latency updates
- If no gamepad is detected, ensure your controller is properly connected
- The application will automatically notify you if the controller gets disconnected
- Check the debug console in the web interface for detailed event information
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
This means you are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial — You may not use the material for commercial purposes.
For the full license text, visit: https://creativecommons.org/licenses/by-nc/4.0/
- Built with Flask and SocketIO
- Uses the
inputsPython library for controller input handling