This is an interesting idea. The stylus would probably work pretty well for emulating mouse input. The hardest part would probably be getting a port of SDL for the DS. I did a quick google search and there were some results for a port of SDL to the DS, though I didn't dig too deep.