Skip to main content

InputStateCell

Type Alias InputStateCell 

Source
pub type InputStateCell = Rc<EngineCell<InputState>>;
Expand description

A shared, single-threaded cell holding the engine’s InputState.

Registered DOM event listeners clone this Rc to keep the state alive for the lifetime of the document, while game code reads the same cell through EngineHandle::try_get_input_cell.

Aliased Type§

pub struct InputStateCell { /* private fields */ }