You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2009-01-12 08:51:46

compiler
Member
Registered: 2009-01-12
Posts: 2

Touchscreen not working under Linux when using devkitPro ARM

Hi.

I'm starting to program some small games for NDS, so I installed devkitpro and DeSmuME to develop and test.

I compiled DeSMuME 0.9 succesfully and mouse is working as touchscreen in commercial games, but it's not working in NDS files created with devkitPro. Those NDS files work PERFECTLY under the real NintendoDS hardware.

Example code from nds-examples in devkitpro:

   touchPosition touchXY;

   (...)

      scanKeys();
      keystatus = keysDown();
      touchRead(&touchXY);
      mx = touchXY.px;
      my = touchXY.py;
      iprintf("\x1b[23;1H %04X, %04X  ", mx, my);

The above code works under the real NDS hardware, but does not work under DeSmuME 0.9. I click on the screen and I never get any "touchscreen press".

NONE of the devkitpro examples using the mouse (touchRead()) work under DeSmuME for Linux.

Any idea? :?

IMPORTANT NOTE: I've compiled desmume 0.8 and mouse works correctly in my NDS under it. Maybe it's just a 0.9 bug!

Last edited by compiler (2009-01-12 11:46:29)

Offline

#2 2009-01-12 15:58:11

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Touchscreen not working under Linux when using devkitPro ARM

compiler: Update your SVN copy, afaik, CrazyMax fixed it today.

Offline

#3 2009-01-12 16:05:04

compiler
Member
Registered: 2009-01-12
Posts: 2

Re: Touchscreen not working under Linux when using devkitPro ARM

shash wrote:

compiler: Update your SVN copy, afaik, CrazyMax fixed it today.

Thanks a lot.

I was not using the SVN snapshot, I downloaded the tar.gz file from sourceforge.

Thanks a lot for your answer smile

Offline

Board footer

Powered by FluxBB