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!
deprecated structure IPC removed
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: deprecated structure IPC removed
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.
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.
Re: deprecated structure IPC removed
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.
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.
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: deprecated structure IPC removed
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.
Re: deprecated structure IPC removed
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.
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.
Re: deprecated structure IPC removed
Would it be so hard to edit the sdl input code to use the libnds sanction apis?
Re: deprecated structure IPC removed
I've tried, and yes, for me it's very hard ^^
Who is online
Users browsing this forum: No registered users and 0 guests