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 Misc > How can i apply latest libnds for better homebrews to my DS?

#74088 - WhyKlef - Thu Mar 02, 2006 7:37 am

Touch screen works like **** when it comes to most homebrews i try. I remember someone said they fixed it with the touch.c in the libnds but i have no clue how to actually apply this to my NDS, can someone guide to a solution?

#74098 - PhoenixSoft - Thu Mar 02, 2006 10:47 am

It may be the flash card you're using; the MagicKey, or example, causes MoonShell's to mess up.

#74101 - Xtreme - Thu Mar 02, 2006 12:28 pm

WhyKlef wrote:
Touch screen works like **** when it comes to most homebrews i try. I remember someone said they fixed it with the touch.c in the libnds but i have no clue how to actually apply this to my NDS, can someone guide to a solution?

Yes. I hate that too.
PoffPad v0.1 for example is sh*t! It's using some really old tools. It detects my stylus 10mm from the wrong point. To test the accurancy I followed the corners.

Can you please hb guys/gals update your codes with the fixed file so that I can use your great? apps?
_________________
My Theme
DS Lite (FM_V8a) ** R4 Revolution (2GB Transcend) ** SuperCard Lite (2x 2GB Transcend)

#74106 - Sektor - Thu Mar 02, 2006 2:33 pm

The better touch code is already in the most recent libnds, there was a time when it was only in CVS but it's already been integrated. Not all DS are a like though, so it's still not perfect.
_________________
GTAMP.com/DS

#74212 - poffy - Fri Mar 03, 2006 3:38 pm

Xtreme wrote:
WhyKlef wrote:
Touch screen works like **** when it comes to most homebrews i try. I remember someone said they fixed it with the touch.c in the libnds but i have no clue how to actually apply this to my NDS, can someone guide to a solution?

Yes. I hate that too.
PoffPad v0.1 for example is sh*t! It's using some really old tools. It detects my stylus 10mm from the wrong point. To test the accurancy I followed the corners.

Can you please hb guys/gals update your codes with the fixed file so that I can use your great? apps?


poffPad is compiled using libnds 20060201.

#74226 - Nushio - Fri Mar 03, 2006 5:49 pm

The problem with homebrew and DS is that Nintendo made several 'versions' of the touchscreen, the problem with these several 'versions', is that while programs like DS2Win and DS2Key (used) to have a very... peculiar touchscreen on my DS (on older builds), the new builds fix this for me, but wreck other DSs.

Poffpad is nice, I have trouble writing X and Y, but other than that, the stylus works perfectly, at least for my DS.

Try recalibrating the DS, but get mark the crosses wrong and test Poffpad, that might help ;)

#74238 - waruwaru - Fri Mar 03, 2006 8:03 pm

Screen protector also makes a huge difference. Try with and without. Putting more pressure down when you want more accurate reading definitely helps.
_________________
DSLua - a scripting language for your DS!

#74276 - tetsujin - Sat Mar 04, 2006 12:26 am

How do official games read the screen? Does libnds attempt to mimic that or is its approach different somehow?
_________________
---GEC
I think that all the work that's been done by the homebrew community so far to support people who want to program for the GBA or DS is amazing.
Thank you, everyone, I look forward to taking advantage of your work.

#74302 - Nushio - Sat Mar 04, 2006 6:11 am

tetsujin wrote:
How do official games read the screen? Does libnds attempt to mimic that or is its approach different somehow?

I'm not entirely sure (But I'm sure someone else, like tepples, knows this a lot better than me), however I'll share my thoughts on the topic.

When you calibrate the DS, it stores some numbers on some memory. Official games use some sort of math lib to calculate where are you pressing, based on those coordinates.

The libnds tries to mimic by calculating as well.

This is, as far as I know, I wouldnt hold my word for it.