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 > Problems with the latest libnds: where did the initKeys()go?

#63572 - bafio - Wed Dec 14, 2005 12:42 pm

Well,
the subject says it all, I am having compilation errors due to that missing function, just afted I updated to the lates version.
I have removed the call, but this way the touchscreen does not respond anymore...

Any suggestions?

Bafio

#63573 - melw - Wed Dec 14, 2005 1:05 pm

As it's removed from libnds it's not needed anymore. Touchscreen not working has nothing to do with obfuscated initKeys() but I noticed that at least now iDeaS emulator is out of date so that it doesn't respond to mouse - on real thing everything works as it should.

#63576 - bafio - Wed Dec 14, 2005 1:19 pm

melw wrote:
As it's removed from libnds it's not needed anymore. Touchscreen not working has nothing to do with obfuscated initKeys() but I noticed that at least now iDeaS emulator is out of date so that it doesn't respond to mouse - on real thing everything works as it should.


Actually, I am running on the real thing! Since the update, I removed the function call, and the touch screen is not responding.
Before that, it was working with the same exact code. Maybe I need to change something on my code?

Bafio

#63579 - melw - Wed Dec 14, 2005 1:59 pm

Ok... on a closer look I seemed to be using still the old way of reading touchscreen instead of the touchReadXY() - i.e. IPC->touchX and IPC->touchY give me readings without any problems. Testing quickly touchReadXY() didn't. But perhaps it's better that someone involved with libnds development comment on this. :)

#63657 - bafio - Thu Dec 15, 2005 10:32 am

Ok, after some searching in the code,

I can see that the initKeys is no longer needed. Problem is that using the new standard method I get really wong readings (they seem to be expanded, scaled up).
My solotion for now is to go back to the previous version of the library.

Bafio