mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-25 13:30:58 +00:00
Add rudimentary menu
This commit is contained in:
parent
68481edc45
commit
6675b760af
5 changed files with 106 additions and 1641 deletions
BIN
nzportable.3dsx
BIN
nzportable.3dsx
Binary file not shown.
BIN
nzportable.elf
BIN
nzportable.elf
Binary file not shown.
|
@ -56,7 +56,7 @@ keyname_t keynames[] =
|
||||||
{
|
{
|
||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
{"TAB", K_TAB},
|
{"TAB", K_TAB},
|
||||||
{"START", K_ENTER},
|
{"START", K_ESCAPE},
|
||||||
{"SELECT", K_SELECT},
|
{"SELECT", K_SELECT},
|
||||||
{"SPACE", K_SPACE},
|
{"SPACE", K_SPACE},
|
||||||
{"BACKSPACE", K_BACKSPACE},
|
{"BACKSPACE", K_BACKSPACE},
|
||||||
|
|
1741
source/menu.c
1741
source/menu.c
File diff suppressed because it is too large
Load diff
|
@ -281,6 +281,7 @@ void Sys_LowFPPrecision (void)
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
bool game_running;
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
static float time, oldtime;
|
static float time, oldtime;
|
||||||
|
@ -308,7 +309,8 @@ int main (int argc, char **argv)
|
||||||
|
|
||||||
oldtime = Sys_FloatTime();
|
oldtime = Sys_FloatTime();
|
||||||
|
|
||||||
while (aptMainLoop())
|
game_running = true;
|
||||||
|
while (aptMainLoop() && game_running)
|
||||||
{
|
{
|
||||||
time = Sys_FloatTime();
|
time = Sys_FloatTime();
|
||||||
Host_Frame (time - oldtime);
|
Host_Frame (time - oldtime);
|
||||||
|
|
Loading…
Reference in a new issue