~sircmpwn/tetrominoes

7209df15b1ee654d42a785fb16593ef5c2666399 — Drew DeVault 3 months ago a85a921 master
Update for integer changes
1 files changed, 1 insertions(+), 1 deletions(-)

M update.ha
M update.ha => update.ha +1 -1
@@ 15,7 15,7 @@ type input = struct {
fn update(state: *state) (void | sdl2::error) = {
	const now = sdl2::get_ticks();
	const input = &state.input;
	const idle = math::absi16(input.axis_x) < THRESHOLD;
	const idle = math::absi16(input.axis_x): i16 < THRESHOLD;

	let ev = sdl2::event { ... };
	for (sdl2::poll_event(&ev)? == 1) switch (ev.event_type) {