inputBTW
inputBTW is a cross-platform input abstraction library designed to unify keyboard, mouse, touch, and gamepad inputs for applications and games. It provides a consistent event model across web, desktop, and mobile platforms, with support for remapping, contextual actions, and accessibility options.
The library emphasizes portability and performance. It exposes a small core API and a set of adapters
- Unified event stream across input types and platforms
- Customizable bindings with per-profile remapping
- Gesture recognition (swipe, pinch, tap-and-hold)
- Input state tracking and replay for testing
- Accessibility features such as focus handling and high-contrast support
- Lightweight plugin system for extensions
- Core event engine that normalizes events into Action objects
- Platform adapters for web, Windows, macOS, Linux, iOS, and Android
- Action maps that bind inputs to application actions
- State store for current input states and profiles
- Gesture recognizer and input routing subsystem
- Plugin interface for extensions
- Conceived in 2019 as a research project to unify input handling
- Open-sourced in 2020 under the MIT license
- As of 2024, maintained by a small community of contributors with regular releases
- Install the library, initialize the runtime, define actions, and create bindings or profiles. Load the desired
See also: input handling, cross-platform development, game development libraries.