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:
parent
d76d8ced9b
commit
05a221017e
3 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <array>
|
#include <array>
|
||||||
#ifndef PLATFORM_WINDOWS
|
#ifndef PLATFORM_WINDOWS
|
||||||
|
# include <sys/socket.h>
|
||||||
# include <sys/select.h>
|
# include <sys/select.h>
|
||||||
#else
|
#else
|
||||||
# include <ws2tcpip.h>
|
# include <ws2tcpip.h>
|
||||||
|
|
|
@ -91,6 +91,10 @@ class Runtime {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Runtime() {
|
Runtime() {
|
||||||
|
// Configure video
|
||||||
|
videoSetMode(MODE_0_2D);
|
||||||
|
lcdMainOnBottom();
|
||||||
|
|
||||||
// Initialize console
|
// Initialize console
|
||||||
consoleDemoInit();
|
consoleDemoInit();
|
||||||
|
|
||||||
|
@ -101,7 +105,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize keyboard
|
// Initialize keyboard
|
||||||
swkbd = keyboardDemoInit();
|
swkbd = keyboardGetDefault();
|
||||||
|
swkbd = keyboardInit(swkbd, 3, BgType_Text4bpp, BgSize_T_256x512, swkbd->mapBase, swkbd->tileBase, true, true);
|
||||||
swkbd->OnKeyPressed = kbCallback;
|
swkbd->OnKeyPressed = kbCallback;
|
||||||
}
|
}
|
||||||
Runtime(Runtime&) = delete;
|
Runtime(Runtime&) = delete;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#ifndef PLATFORM_WINDOWS
|
#ifndef PLATFORM_WINDOWS
|
||||||
|
# include <sys/socket.h>
|
||||||
# include <sys/select.h>
|
# include <sys/select.h>
|
||||||
#else
|
#else
|
||||||
# include <ws2tcpip.h>
|
# include <ws2tcpip.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue