deprecated structure IPC removed

Post Reply
cid_high
Posts: 5
Joined: Fri Jul 16, 2010 9:56 am

deprecated structure IPC removed

Post by cid_high » Fri Jul 16, 2010 10:29 am

Hello,

I'm doing a project for the Nintendo DS, using the libnds, and also a library called SDL. The problem is that if I initialize the library SDL, then the TouchPad doesn't work (using the default program for the ARM7). But the TouchPad does work if I use this custom program for the ARM7 :

code removed, please don't post deprecated code

The problem is that I've seen that in a recent libnds the deprecated structure IPC has been removed. So I can't update my devkitARM/libnds unless I stop using this IPC structure. And besides my code is deprecated...

I've been studying the code of the libnds, but i haven't found the way of substituting this structure. Can anyone help me, please? Thank you!

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: deprecated structure IPC removed

Post by WinterMute » Fri Jul 16, 2010 10:39 am

Read through the libnds examples provided with devkitARM.

It's also worth noting that SDL is rather seriously unsuited to the DS and is likely to cause you more problems than it solves. Reading DS input via libnds is much simpler and gives you more flexibility than the SDL function. You also lose the ability to use the DS hardware graphics which are obviously *much* faster than pixel plotting.
Help keep devkitPro toolchains free, Donate today

Personal Blog

cid_high
Posts: 5
Joined: Fri Jul 16, 2010 9:56 am

Re: deprecated structure IPC removed

Post by cid_high » Fri Jul 16, 2010 10:58 am

Thank you for your reply.

I've studied the "nds-examples-20100313/input/Touch_Pad" examples. They use the TouchPad through the ARM9, in the normal way, and it does not work for me :-(

Yes, I know that SDL is not very suitable to the DS, but I need to use it because I'm doing a university project and need to port a SDL game changing the less code as possible.

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: deprecated structure IPC removed

Post by WinterMute » Sat Jul 17, 2010 11:36 am

How are you testing your code? It's possible that whatever loader you're using is failing or, if you're using an emulator then there may be a bug in that.
Help keep devkitPro toolchains free, Donate today

Personal Blog

cid_high
Posts: 5
Joined: Fri Jul 16, 2010 9:56 am

Re: deprecated structure IPC removed

Post by cid_high » Sat Jul 17, 2010 5:11 pm

I have tested different ways and the result is always the same: directly in a Nintendo DS with a M3 flashcard, in a Linux DeSmume emulator and in a Windows iDeaS emulator.

I think that the problem is the initialization of the SDL, that does something wrong or incompatible with the libnds, because it's when I initialize the SDL when the Touch Pad stops working. But I need to use the SDL for my project, and I also need the TouchPad...

So there is no way of change the use of the IPC structure in the ARM7 code? Because using this structure my code works fine.

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: deprecated structure IPC removed

Post by zeromus » Sun Jul 18, 2010 12:57 am

Would it be so hard to edit the sdl input code to use the libnds sanction apis?

cid_high
Posts: 5
Joined: Fri Jul 16, 2010 9:56 am

Re: deprecated structure IPC removed

Post by cid_high » Mon Jul 19, 2010 9:41 am

I've tried, and yes, for me it's very hard ^^

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests