1
0
Fork 0
mirror of https://gitlab.com/niansa/llama_any.git synced 2025-03-06 20:48:27 +01:00

NDS: Display console on top, keyboard on bottom

This commit is contained in:
niansa 2023-04-07 10:32:23 +02:00
parent d76d8ced9b
commit 05a221017e
3 changed files with 8 additions and 1 deletions

View file

@ -3,6 +3,7 @@
#include <string_view>
#include <array>
#ifndef PLATFORM_WINDOWS
# include <sys/socket.h>
# include <sys/select.h>
#else
# include <ws2tcpip.h>

View file

@ -91,6 +91,10 @@ class Runtime {
public:
Runtime() {
// Configure video
videoSetMode(MODE_0_2D);
lcdMainOnBottom();
// Initialize console
consoleDemoInit();
@ -101,7 +105,8 @@ public:
}
// Initialize keyboard
swkbd = keyboardDemoInit();
swkbd = keyboardGetDefault();
swkbd = keyboardInit(swkbd, 3, BgType_Text4bpp, BgSize_T_256x512, swkbd->mapBase, swkbd->tileBase, true, true);
swkbd->OnKeyPressed = kbCallback;
}
Runtime(Runtime&) = delete;

View file

@ -4,6 +4,7 @@
#include <string_view>
#ifndef PLATFORM_WINDOWS
# include <sys/socket.h>
# include <sys/select.h>
#else
# include <ws2tcpip.h>