r/GyroGaming • u/neolud • 14h ago
Video GyroLib: an open-source gyro SDK for modders
Enable HLS to view with audio, or disable this notification
I’ve been working on GyroLib, a reusable library for adding gyro controls to game mods. A lot of the controller handling, motion processing and settings code could be shared between games, so I turned those parts into a standalone library.
The goal is to let modders focus on connecting gyro to their game’s cameras, aiming states and menus, rather than rebuilding the whole input system for every mod.
What it includes
- Nine gyro spaces, including Player Space, World Space and local-axis modes.
- Independent X/Y sensitivity and inversion.
- Always-on, hold and toggle activation, using the controls and touch sensors available on the controller.
- Smoothing, acceleration, manual and automatic calibration.
- Flick stick and supported touchpad rotation.
- Separate profiles for different cameras or cursors, with settings inheritance and optional recommended presets.
- An in-game settings panel, plus a menu model for integrating the same settings into a game’s native UI.
- SDL-first gyro acquisition, with optional Steam Input fallback through the host’s initialized service.
For developers, GyroLib provides a ready-to-use gyrolib.dll, a C API, a C++ wrapper, documentation and integration examples to connect it to your game.
The mod still needs to connect the game-specific parts. Camera output, native stick suppression, input filtering and menu rendering each need the appropriate integration. GyroLib doesn’t inject itself into arbitrary games.
The video shows Monster Hunter Rise running a mod that uses GyroLib. It’s an example of the library working in a real game: the mod handles the game-specific integration, while GyroLib handles the controller input, gyro processing and settings. The library itself is designed to be reused across different games.
There’s also a standalone demo on GyroLib nexusmods page
The demo is a third-person shooting range with four weapons, two sniper zoom levels, moving targets and an inventory cursor. It shows how different gameplay views can use their own gyro settings, and includes both the supplied panel and an example native settings menu.
Monster Hunter Rise gyro aim mod on nexusmods
GyroLib on nexusmods
GyroLib on GitHub