Skip to content

How to Enter Relative Mouse Mode Automatically via Code Instead of Manual Shortcut? #288

@zoushiyin

Description

@zoushiyin

I need to press Ctrl+Shift+G manually to enter Relative Mouse Mode, but I'd like this to be automatically enabled at startup via code, without requiring manual input.

Is there a way to trigger Relative Mouse Mode programmatically on boot (e.g., by setting a flag or calling a function in main())?
Could you point me to the relevant part of the code where the Ctrl+Shift+G shortcut is handled? I'd like to simulate it during initialization if possible.
Additionally, I've noticed that when using a single board, the startup behavior is inconsistent:

About 50% of the time, the LED flashes three times and the device starts normally.
The other 50%, it fails to start properly (no LED flash or only one flash), requiring a reset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions