Registry / utility / winit-input-helper

winit-input-helper

JSON →
library0.17.0rscratesunverified

Processes winit events, allowing input state to be queried at any time.

# Cargo.toml [dependencies] winit_input_helper = "0.17.0"
INSTALL
IMPORT
SIG · WINIT-INPUT-HELPER
W
winit-input-helper
utilityrustv0.17.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WinitInputHelper
use winit_input_helper::WinitInputHelper;

Basic usage of WinitInputHelper to process events and query input state.

use winit_input_helper::WinitInputHelper; let mut input = WinitInputHelper::new(); // In event loop: input.update(&event); // Query: if input.key_pressed(VirtualKeyCode::Space) { ... }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.17.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
winit-input-helper — cargo add winit-input-helper · libregistry