This repository has been archived on 2026-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
molotov/crates/molotov-core/tests/input_manager_test.rs

16 lines
488 B
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
use molotov_core::input::manager::InputManager;
#[test]
fn test_input_manager_coordination() {
let mut input = InputManager::new();
assert!(!input.ime.is_active());
// Game requests text entry
input.ime.start_text_input(Default::default());
assert!(input.ime.is_active());
// Game dispatches haptics
input.haptics.rumble(0, 0.8, 0.8, 100);
assert_eq!(input.haptics.get_state(0).unwrap().duration_ms, 100);
}