Home

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

Key features include:

- 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

Architecture:

- 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

History and status:

- 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

Usage:

- 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.

for
platform-specific
input
sources.
It
includes
an
action
mapping
system
that
decouples
input
sources
from
application
behavior,
enabling
configurable
control
schemes
and
user-defined
profiles.
input
configuration
at
startup
and
switch
profiles
as
needed.