Pandora improved SDL for pandora

PokeParadox

Founder of Pirate Games - Penjin Coder
Staff member
Joined
Dec 8, 2005
Messages
6,516
Age
36
Location
UK
Website
www.projectinfinity.org.uk

alxm

Still making GP2X and Pandora games, stay tuned!
Joined
Jul 11, 2013
Messages
181
Website
www.alxm.org
You can also set it up from your launch script, if you feel your game should be played like that by others, or you can add ingame option that later runs system("sudo -n ..").

http://pandorawiki.org/Kernel_interface#using_predefined_filters

Oh and welcome back to the dev scene, looking forward for your new releases.
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

Where have you been hiding!? :D
Hey Poke :)
 

M-HT

Very Active Member
Joined
Nov 30, 2007
Messages
619
Location
Bratislava
Website
github.com
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.
 

Letalis Sonus

Advanced Member
Joined
Mar 5, 2009
Messages
1,321
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.
 

notaz

Certified Guru
Joined
Aug 23, 2005
Messages
4,913
Location
Lithuania
Website
notaz.gp2x.de
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..
 

Wally

I am a banana!
Staff member
Joined
Jan 31, 2006
Messages
2,969
Age
33
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
 

Magic Sam

Forever Homebrew
Joined
Aug 10, 2007
Messages
2,229
Age
37
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
 

Magic Sam

Forever Homebrew
Joined
Aug 10, 2007
Messages
2,229
Age
37
Location
Innsmouth, MA
Hi all,

@notaz : sorry for the late reply.

I'm already using omapsdl.cfg for that game:
bind ev_pagedown = sdlk_z
bind ev_end = sdlk_x
If I understand correctly, I could redirect "F" to some other, unused key:
bind ev_f = sdlk_some_unused_key
Is that correct ?

Cheers, Magic Sam
 

Silent-Hunter

Hardcore Member
Joined
May 29, 2010
Messages
3,126
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?
 

TrashyMG

Sarcasm Dispenser
Staff member
Joined
Jan 18, 2010
Messages
10,674
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?
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.
 
Top