It does the same to me... strange.It gives me many compiler errors when doing so, errors about making pointer from integer without a cast
Last edited by Yobonanakh,
It does the same to me... strange.It gives me many compiler errors when doing so, errors about making pointer from integer without a cast
#include <nds.h>
#include <stdio.h>
int main(void) {
touchPosition touch;
consoleDemoInit(); //setup the sub screen for printing
iprintf("\n\n\tHello DS dev'rs\n");
iprintf("\twww.drunkencoders.com\n");
iprintf("\twww.devkitpro.org");
while(1) {
touchRead(&touch);
iprintf("\x1b[10;0HTouch x = %04i, %04i\n", touch.rawx, touch.px);
iprintf("Touch y = %04i, %04i\n", touch.rawy, touch.py);
swiWaitForVBlank();
scanKeys();
if (keysDown()&KEY_START) break;
}
return 0;
}
https://discord.gg/6kQbaXfTE5Is there some discord or telegram convo, where ppl gathered together and tinkering with StarDustDS engine?
I already mentioned that i'm not experienced in programming...
I want to implement some printing to Sub screen.
I have found this in devkitpro\examples:
As far as i understand, consoleDemoInit(); breaking everything,C:#include <nds.h> #include <stdio.h> int main(void) { touchPosition touch; consoleDemoInit(); //setup the sub screen for printing iprintf("\n\n\tHello DS dev'rs\n"); iprintf("\twww.drunkencoders.com\n"); iprintf("\twww.devkitpro.org"); while(1) { touchRead(&touch); iprintf("\x1b[10;0HTouch x = %04i, %04i\n", touch.rawx, touch.px); iprintf("Touch y = %04i, %04i\n", touch.rawy, touch.py); swiWaitForVBlank(); scanKeys(); if (keysDown()&KEY_START) break; } return 0; }
bcuz it sets VRAM and screen mode, which already set in main.c
I also tried to look into console section of libnds documentation,
and it made me even more confused.
All i want right now is print touch pos in game on sub screen.
Next i want to try to implement touch input for camera controls.
but now i need to understand what positions i need to read from touch.








