gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Noob question

#168736 - Chaos911 - Tue May 19, 2009 1:43 am

Hi everyone.


Im new to DS programming.

Can somebody please tell me how to print text to the sub (Top) screen of the Nintendo DS in C#

I have looked at lots of tutorials, but none of them tell you how to print text to the sub screen.

If possible can you comment the code.

Thanks in Advance.

#168737 - Dwedit - Tue May 19, 2009 2:38 am

Which screen is the main screen and which is the sub screen can be instantly changed.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#168739 - the-anonymous-coward - Tue May 19, 2009 4:04 am

I wasn't aware that there was currently a way to program the DS in C# at all.

#168740 - Echo49 - Tue May 19, 2009 7:04 am

consoleDemoInit() sets up printing to the sub screen.

Use lcdMainOnTop() to set the sub screen to the bottom, and lcdMainOnBottom() to set the sub screen to the top.

#168743 - Chaos911 - Tue May 19, 2009 12:53 pm

Thanks Echo, that helps alot.

#168744 - Chaos911 - Tue May 19, 2009 1:48 pm

By the way,how would printing text to both screens at the same time be achieved?