Keyboard and background
Posted: Thu Mar 15, 2012 4:05 pm
Not being able to find much info about the onscreen keyboard, I have some questions:
I'm trying to get a keyboard on top of a background image. Not sure if this is possible at all with the default keyboard. Can anyone point me to a good example/tutorial on how to use the keyboard in combination with backgrounds (either the default keyboard or a custom one)?
As a shortcut, after having used the keyboard with
is there a way to reset (or re-init) the bottom screen so I can use
after having used the keyboard.
Both pieces of code separate work fine but not in the same app.... Reusing consoleDemoInit(); doesn't do the trick.
I'm sure it's my perception of the statements that causes the problem here. I still haven't quite figured out how the videomemory of the DS works.
Thanks for your time.
I'm trying to get a keyboard on top of a background image. Not sure if this is possible at all with the default keyboard. Can anyone point me to a good example/tutorial on how to use the keyboard in combination with backgrounds (either the default keyboard or a custom one)?
As a shortcut, after having used the keyboard with
Code: Select all
consoleDemoInit();
keyboardDemoInit();
keyboardShow();
Code: Select all
videoSetModeSub(MODE_5_2D);
vramSetBankC(VRAM_C_SUB_BG_0x06200000);
int bg3sub = bgInitSub(3, BgType_Bmp8, BgSize_B8_256x256, 0,0);
dmaCopy(mysubimg1Bitmap, bgGetGfxPtr(bg3sub), 256*256);
dmaCopy(mysubimg1Pal, BG_PALETTE_SUB, 256*2);
Both pieces of code separate work fine but not in the same app.... Reusing consoleDemoInit(); doesn't do the trick.
I'm sure it's my perception of the statements that causes the problem here. I still haven't quite figured out how the videomemory of the DS works.
Thanks for your time.