mirror of https://git.sr.ht/~kikoodx/momento
18 lines
384 B
C
18 lines
384 B
C
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
||
|
/* Copyright (C) 2021 KikooDX */
|
||
|
|
||
|
#include "input.h"
|
||
|
#include "levelselection.h"
|
||
|
#include <gint/keyboard.h>
|
||
|
|
||
|
/* Return 1 if game state should change. */
|
||
|
int levelselection_update(struct LevelSelection *levelselection,
|
||
|
struct Input input)
|
||
|
{
|
||
|
if (input.keystates[K_A] == KS_PRESS) {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|