How do I assign custom functions to G502 buttons?
Applies to: Logitech G502 Hero / G502 Lightspeed / G502 X / G502 X Plus
Last updated: May 2025
Problem
You want to customize the Logitech G502’s buttons for gaming, productivity, or accessibility—such as assigning keystrokes, macros, media controls, or launching programs.
Solution
Use Logitech G Hub to assign custom functions to any of the programmable buttons on your G502. The G502 typically has 11 to 13 programmable buttons, depending on the model.
Step-by-Step Guide
1. Launch Logitech G Hub
- Download/install from: https://www.logitechg.com/ghub
- Open G Hub and ensure your G502 is connected and recognized
2. Open the Mouse Configuration Panel
- Click on the image of your G502 mouse in G Hub
- Go to the Assignments tab (usually on the left sidebar)
3. Choose a Profile
- Profiles let you assign different functions per game or application
- You can:
- Use the Default profile
- Create a new profile for specific software/games
- Enable automatic profile switching based on running applications
4. Assign Functions to Buttons
Hover over any button on the mouse image, then click it to reassign. You’ll see several categories:
| Category | Examples |
|---|---|
| Commands | Cut, Copy, Paste, Volume Up, Play/Pause |
| Keystrokes | Single key or key combos (e.g., Ctrl+C, Alt+Tab) |
| Macros | Multi-step recorded actions with delays |
| System | Open Task Manager, Launch App, DPI Shift |
| Actions | OBS controls, Discord mute, etc. (if plugins installed) |
| Disable | Unassign the button entirely |
Select your desired action and click Assign.
5. Save to Onboard Memory (Optional)
If you want the button assignments to persist on another PC (without G Hub):
- Go to the Onboard Memory tab
- Assign functions directly to the mouse’s hardware profiles
- Click Save to device
Not all features (like macros) are supported in onboard mode.
Tips for Common Assignments
- Assign Sniper (DPI Shift) to a thumb button for precise aiming
- Use G-Shift (modifier key) to double your button options
- Create app-launch macros for productivity workflows
- Disable buttons you don’t use to avoid misclicks
Notes
- Changes apply instantly while G Hub is running
- If buttons aren’t responding as expected, check that you’re in the correct profile
- You can reset all buttons using the “Restore Defaults” option in G Hub





