GP2X Hw Accelerated Sdl

Discussion in 'General Discussions' started by paeryn, Dec 28, 2005.

  1. Hooka

    Hooka That Guy!

    Joined:
    Jul 19, 2003
    Messages:
    1,737
    Location:
    Canada
    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 ;)
     
  2. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    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: Dec 18, 2015
  3. Pickle

    Pickle Mega GP Mania

    Joined:
    May 30, 2006
    Messages:
    5,398
    Location:
    Detroit, Michigan
     
    Last edited by a moderator: Dec 18, 2015
  4. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    Here is a prebuilt binary release of SDL 1.2.13 with USB keyboard support and the improved touchscreen stuff I did:

    http://www.mediafire.com/?9mw9tg2nd10

    I am too tired and need to get to sleep to verify this is the correct one, but I think it is.
     
  5. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    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
     
  6. Hooka

    Hooka That Guy!

    Joined:
    Jul 19, 2003
    Messages:
    1,737
    Location:
    Canada
    That might explain my stuttery music in freesci then ;) (although it's buffer is quite sizeable to begin with it seems...)
     
  7. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    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.
     
  8. M-.-n

    M-.-n Member

    Joined:
    May 28, 2005
    Messages:
    160
    Location:
    Brussels, Belgium
    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 !
     
  9. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    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: Dec 18, 2015
  10. ledow

    ledow Member

    Joined:
    Jan 6, 2008
    Messages:
    430
    Location:
    UK
     
    Last edited by a moderator: Dec 17, 2015
  11. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
     
    Last edited by a moderator: Dec 17, 2015
  12. Farox

    Farox Certified Guru

    Joined:
    Jan 8, 2009
    Messages:
    1,979
    Location:
    Italy
    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
     
  13. senquack

    senquack I feel a great disturbance in the source

    Joined:
    Nov 1, 2006
    Messages:
    1,168
    Location:
    USA
    It'd only take a solid night to do that but would it be worth it?
     
    Last edited by a moderator: Dec 17, 2015

Share This Page

Loading...