Skip to main content

MAX_REPEATS_PER_UPDATE

Constant MAX_REPEATS_PER_UPDATE 

Source
pub const MAX_REPEATS_PER_UPDATE: u64 = 5;
Expand description

At most this many repeats are emitted by one InputState::update, so a lag spike can’t teleport the cursor across the map.