Pandora improved SDL for pandora

Discussion in 'General Discussions' started by notaz, Nov 24, 2011.

  1. PokeParadox

    PokeParadox Founder of Pirate Games - Penjin Coder Staff Member

    Joined:
    Dec 8, 2005
    Messages:
    6,510
    Location:
    UK
    Where have you been hiding!? :D
     
  2. alxm

    alxm Still making GP2X and Pandora games, stay tuned!

    Joined:
    Jul 11, 2013
    Messages:
    163
    Thanks notaz. I'm using this script to restore the user's preference afterwards (although it gets restored after a reboot anyway):


    #!/bin/sh

    export SDL_VIDEODRIVER=omapdss
    export SDL_OMAP_LAYER_SIZE=pixelperfect

    user_filter=$(head -n 1 /etc/pandora/conf/filter.state)
    sudo -n /usr/pandora/scripts/op_videofir.sh none

    ./Application

    sudo -n /usr/pandora/scripts/op_videofir.sh $user_filter

    exit 0

    Hey Poke :)
     
  3. M-HT

    M-HT Very Active Member

    Joined:
    Nov 30, 2007
    Messages:
    599
    Location:
    Bratislava
    I found a minor bug (or at least a different behaviour).

    Pressing the Fn key generates key events (key.keysym.sym = 255).

    In unimproved SDL pressing the Fn key doesn't generate key events.
     
  4. Letalis Sonus

    Letalis Sonus Advanced Member

    Joined:
    Mar 5, 2009
    Messages:
    1,004
    Usually the Fn key is something that is handled internally by the keyboard, so it never generates any key event on its own that could reach the OS. However, as the Pandora has no separate keyboard acting on its own this behaviour is being emulated by the OS, which causes key events.

    That might actually be a planned behaviour to keep the Fn key's original function working in games using it.
     
  5. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,910
    Location:
    Lithuania
    Yeah I thought it might be useful to send a keycode, maybe somebody wants to use it for something.

    Could be removed though, or maybe I should make another config env var..
     
    _wb_ likes this.
  6. M-HT

    M-HT Very Active Member

    Joined:
    Nov 30, 2007
    Messages:
    599
    Location:
    Bratislava
    Maybe just writing about it in the readme would be enough?
     
  7. ZXDunny

    ZXDunny Deep avatar

    Joined:
    Oct 12, 2010
    Messages:
    2,491
    PandaBAS uses the keycodes, so please don't remove them.

    D.
     
  8. Wally

    Wally I am a banana! Staff Member

    Joined:
    Jan 31, 2006
    Messages:
    2,897
    Location:
    Melbourne, Australia
    I am about to use the key codes to make individual dosgame PND wrappers for my personal use however I am not familiar with the ev_keycodes.

    If someone has the location where I can find these key codes that would be great.

    bind ev_space = SDLK_RCTRL <-- as an example doesn't seem to work with the right trigger or such
     
  9. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,119
    Location:
    Innsmouth, MA
    Hi all :)

    @notaz : is there a way to unbind / mute a key with your improved SDL version ?

    That would be useful for Retrobattle, where the "F" key (for fullscreen mode) conflicts with SDL_OMAP_LAYER_SIZE="fullscreen", resulting in a black screen.

    Cheers, Magic Sam
     
  10. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,910
    Location:
    Lithuania
    _jr_ likes this.
  11. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,119
    Location:
    Innsmouth, MA
    Hi all,

    @notaz : sorry for the late reply.

    I'm already using omapsdl.cfg for that game:
    If I understand correctly, I could redirect "F" to some other, unused key:
    Is that correct ?

    Cheers, Magic Sam
     
  12. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,854
    Hey, when I use SDL with mplayer I can smoothly play videos larger than 800x480, but the colors are all shifted. Like, it's grayscale with offset colors. Is there anything I can set to fix that?
     
  13. TrashyMG

    TrashyMG Sarcasm Dispenser Staff Member

    Joined:
    Jan 18, 2010
    Messages:
    10,271
    Are you sure the videos are playing well with the SDL renderer? usually It starts off fine, but then later sound goes out of sync. if said video plays well with SDL it should run better with omapfb and HW scaling.
     
  14. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,854
    Well it's above 800x480, but panplayer2 plays them so I guess that's alright.
     

Share This Page

Loading...