2021-04-12 10:59:46 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
/* Copyright (C) 2021 KikooDX */
|
|
|
|
|
2021-04-19 12:29:54 +02:00
|
|
|
#include "input.h"
|
2021-04-12 10:59:46 +02:00
|
|
|
#include "titlescreen.h"
|
|
|
|
#include <gint/keyboard.h>
|
|
|
|
|
|
|
|
/* Return 1 if game state should change. */
|
2021-04-27 00:52:53 +02:00
|
|
|
int
|
|
|
|
titlescreen_update(struct TitleScreen *titlescreen, struct Input input)
|
2021-04-12 10:59:46 +02:00
|
|
|
{
|
2021-04-19 12:29:54 +02:00
|
|
|
if (input.keystates[K_A] == KS_PRESS) {
|
2021-04-12 10:59:46 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|