A powerful desktop application that maps your gamepad/controller inputs to keyboard keys and mouse movements. Perfect for gaming, productivity, or accessibility needs.
- 🎯 Button Mapping: Map any gamepad button to keyboard keys
- 🕹️ Analog Stick Control: Two powerful modes for analog sticks:
- Hotkey Mode: Map stick directions (8 directions) to keyboard keys with customizable thresholds
- Mouse Mode: Control your mouse cursor with configurable sensitivity, acceleration, and axis inversion
- ⬆️ D-Pad Mapping: Map D-pad directions to keyboard keys
- 👁️ Visual Controller Interface: Real-time visualization of your gamepad state with interactive controls
- 🔌 Multi-Device Support: Connect and configure multiple gamepads simultaneously
- 💾 Persistent Mappings: Your configurations are automatically saved and restored
- 🔄 Auto-Updates: Built-in update system keeps you on the latest version
- 🎨 Modern UI: Clean, intuitive interface built with React and Tailwind CSS
- Node.js >= 14.18.0 || >= 16.0.0
- npm or yarn
# Clone the repository
git clone https://github.com/humbertogontijo/gamepad-mapping.git
# Navigate to the project directory
cd gamepad-watcher
# Install dependencies
npm install
# or
yarn install
# Run in development mode
npm run dev
# or
yarn dev# Build for production
npm run build
# or
yarn buildThe built application will be available in the release/ directory.
- Connect Your Gamepad: Plug in your gamepad/controller and press any button to activate it
- Select a Control: Click on any button, stick, or D-pad direction in the visual controller
- Map to Keyboard: Choose a keyboard key to map the selected control to
- Configure Sticks: For analog sticks, choose between Hotkey mode (8-direction keyboard mapping) or Mouse mode (cursor control)
- Save Automatically: All mappings are saved automatically and will persist between sessions
When using Mouse Mode for analog sticks, you can configure:
- Sensitivity: Control how fast the cursor moves (0.1 - 10.0)
- Acceleration: Add acceleration for smoother movement (0.0 - 2.0)
- Axis Inversion: Invert X or Y axis if needed
- Frontend: React 18 + TypeScript
- Desktop: Electron 33
- Build Tool: Vite
- Styling: Tailwind CSS
- Input Simulation: @nut-tree-fork/nut-js
- Auto-Updates: electron-updater
├── electron/ # Electron main process and preload scripts
│ ├── main/ # Main process code
│ └── preload/ # Preload scripts
├── src/ # React application source
│ ├── components/ # React components
│ ├── hooks/ # Custom React hooks
│ └── types/ # TypeScript type definitions
├── public/ # Static assets
└── release/ # Built application executables
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project useful, consider buying me a coffee to support development:
Built with electron-vite-react template.
Made with ❤️ by Humberto Gontijo