GP2X Hw Accelerated Sdl


Any chance of a fix for the touchscreen and mouse for the latest 1.2.9 beta Senor Quack?

Not trying to be pushy, just nosy ;)
 
Hooka said:
Any chance of a fix for the touchscreen and mouse for the latest 1.2.9 beta Senor Quack?

Not trying to be pushy, just nosy ;)
Touchscreen and mouse fix is already in 1.2.9 SVN, also they are in the new SDL 1.2.13 in SVN. It would be up to Paeryn to release a binary if you are looking in the usual spot. I cannot provide a link to one here, no internet (I am at the library) :(

I also have another small bugfix regarding pathname to usb mice but dunno how important it is. Will commit it and compile binaries within a week or two, hopefully.
 
Last edited by a moderator:
Senor Quack said:
Hooka said:
Any chance of a fix for the touchscreen and mouse for the latest 1.2.9 beta Senor Quack?

Not trying to be pushy, just nosy ;)
Touchscreen and mouse fix is already in 1.2.9 SVN, also they are in the new SDL 1.2.13 in SVN. It would be up to Paeryn to release a binary if you are looking in the usual spot. I cannot provide a link to one here, no internet (I am at the library) :(

I also have another small bugfix regarding pathname to usb mice but dunno how important it is. Will commit it and compile binaries within a week or two, hopefully.
I have a binary for 1.2.13, PM me if anyone needs it. Scratch that, its not working right.
 
Last edited by a moderator:
If anyone is attempting to use SDL 1.2.13 and uses the built-in sound facilities (i.e. mixsdl, NOT the separate SDL_mixer library), 1.2.13 now requires a much larger sample buffer size. Whereas before I would normally use something like 128, 512 is now required. The sound delay you used to get trying to use a larger size like 512 is no longer existant, however, so don't worry about that. Wejp (author of GMU) discovered this sound stuttering bug and after experimentation I found this unusual new requirement.

We are debating whether to force larger sample buffer sizes regardless of what is requested in 1.2.13
 
That might explain my stuttery music in freesci then ;) (although it's buffer is quite sizeable to begin with it seems...)
 
Here is a link to the latest GP2X SDL until it can find a permanent home:

http://www.mediafire.com/?imeznyhnm59

Latest features:
  • We (Open2X) moved back to 1.2.11 because 1.2.13 has an issue with sound. This SDL also uses select() instead of nanosleep() for SDL_Delay, the older way.. Nanosleep was causing problems in various programs because of unusual behaviour.
  • It has a workaround for a bug in the kernel touchscreen driver causing occaisional non-responsive touchscreens on program startup.
  • Two new functions to disallow the touchscreen from raising mouse button and movement events (this is sometimes useful when porting stuff)
  • And, of course, it has all the touchscreen smoothing/CPU loading enhancements and USB keyboard support of my last release.
 
I just noticed this thread had moved on without notifying me, even tho it says I'm subscribed to it :)

Great news that the touchscreen might be available now. However, I did quickly tried:

CODE
case SDL_MOUSEMOTION:
SDL_WarpMouse(event.motion.x,event.motion.y);
break;


in my event loop. Both with senor quaks download link & Paeryn's linked on the wiki and none of them seemed to do anything to the mouse pointer. Do I have to init the mouse ? I don't remember doing so.

At the moment, my SDL_Init is with
CODE

SDL_INIT_VIDEO,SDL_INIT_JOYSTICK,SDL_INIT_TIMER,SDL_INIT_EVENTTHREAD


I'd be really happy to add some touchy support to lgpt !
 
M-.-n said:
I just noticed this thread had moved on without notifying me, even tho it says I'm subscribed to it :)

Great news that the touchscreen might be available now. However, I did quickly tried:

CODE
case SDL_MOUSEMOTION:
SDL_WarpMouse(event.motion.x,event.motion.y);
break;
in my event loop. Both with senor quaks download link & Paeryn's linked on the wiki and none of them seemed to do anything to the mouse pointer. Do I have to init the mouse ? I don't remember doing so.

At the moment, my SDL_Init is with
CODE

SDL_INIT_VIDEO,SDL_INIT_JOYSTICK,SDL_INIT_TIMER,SDL_INIT_EVENTTHREAD


I'd be really happy to add some touchy support to lgpt !


OK, this isn't your problem but you don't want SDL_INIT_EVENTTHREAD with the new touchscreen support, it is unnecessary.

As for your problem, you shouldn't need to call SDL_WarpMouse, as SDL automaticallly should move the cursor when it sees the touchscreen pressed down. I would be happy to look at your code later tonight or tomorrow if you send a download link, that would be the quickest way to pinpoint the problem. Make sure you have no USB mice connected to the unit, by the way. SDL doesn't support multiple mice inputs (yet, anyways).
 
Last edited by a moderator:
Senor Quack said:
Here is a link to the latest GP2X SDL until it can find a permanent home:

http://www.mediafire.com/?imeznyhnm59



Thanks for this Senor Quack... I need to get around to updating the version of SDL that I compile against because the one I use is hideously out of date and doesn't support touchscreen very well. Should just be a plug-in replacement, yes?

When you say "find a more permanent home", do you refer to hosting, or an SVN, or that you just haven't got around to putting it somewhere or what? I'd be happy to mirror any static files that you need hosted - I run several large websites and static content is hardly a chore, but I can't give you an FTP account or anything.
 
Last edited by a moderator:
ledow said:
Senor Quack said:
Here is a link to the latest GP2X SDL until it can find a permanent home:

http://www.mediafire.com/?imeznyhnm59



Thanks for this Senor Quack... I need to get around to updating the version of SDL that I compile against because the one I use is hideously out of date and doesn't support touchscreen very well. Should just be a plug-in replacement, yes?

When you say "find a more permanent home", do you refer to hosting, or an SVN, or that you just haven't got around to putting it somewhere or what? I'd be happy to mirror any static files that you need hosted - I run several large websites and static content is hardly a chore, but I can't give you an FTP account or anything.


Well, the permanent home for the code itself is always under libs-new/sdl/sdl/ in Open2X SVN, but the source for precompiled binaries of hardware-accelerated SDL has always been Paeryn's site. I guess the proper thing to do would be to contact Paeryn and see about getting him to host newer versions of the library on his site. I'll let you know if I can't make this happen and thanks for the offer.

And yeah, it should be a drop-in replacement. Just update the header files with the ones provided since there are some new functions in there regarding touchscreen events.
 
Last edited by a moderator:
Hi
Since are available a new version of SDL libs (1.2.14) is possible to merge the new version with the current Hw accelerated version..?

thanks
 
Farox said:
Hi
Since are available a new version of SDL libs (1.2.14) is possible to merge the new version with the current Hw accelerated version..?

thanks

It'd only take a solid night to do that but would it be worth it?
 
Last edited by a moderator:
Back
Top