diff --git a/Receiver.cpp b/Receiver.cpp index e027016..a8652f2 100644 --- a/Receiver.cpp +++ b/Receiver.cpp @@ -3,6 +3,7 @@ #include #include #ifndef PLATFORM_WINDOWS +# include # include #else # include diff --git a/Runtime.hpp b/Runtime.hpp index b4f4a17..6525342 100644 --- a/Runtime.hpp +++ b/Runtime.hpp @@ -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; diff --git a/Sender.cpp b/Sender.cpp index 539ba77..0e9d5cd 100644 --- a/Sender.cpp +++ b/Sender.cpp @@ -4,6 +4,7 @@ #include #ifndef PLATFORM_WINDOWS +# include # include #else # include