momento/src/pause/update.c

17 lines
308 B
C
Raw Normal View History

2021-05-06 00:06:12 +02:00
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
#include "input.h"
#include "pause.h"
/* Return 1 if game state should change. */
int
2021-05-06 03:30:43 +02:00
pause_update(struct Pause *restrict pause, struct Input input)
2021-05-06 00:06:12 +02:00
{
if (input.keystates[K_START] == KS_PRESS) {
return 1;
}
return 0;
}