Author Topic: How to run snes9x and other SDL applications in portrait...  (Read 5325 times)

Anonymous

  • Guest
How to run snes9x and other SDL applications in portrait...
« on: February 23, 2004, 08:34:51 pm »
I really find the snes9x emulator for the zaurus rather amazing, but the landscape view is kind of annoying, is there any way of doing this?  I gather it\'s an SDL related thing...  Any help would be apreciated, ALOT...  Thanks.

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #1 on: February 23, 2004, 08:55:09 pm »
Not that I have found, and believe me when I say that I have searched long and hard for an answer.

I think snes9x being designed to run in landscape mode has something to do with having direct access to the frame buffer.  What that exactly means, I don\'t know.  I hope a developer will read this and try to explain it to us.

I have found a way to rotate the screen, but it just flips it 270 degrees instead of 90 degrees.  That really doesn\'t do us any good, still in landscape view.

I do know of a way to change your control keys though, which may be useful considering how impossible it is to use s,d,x and c for gameplay whenever you are holding the zaurus sideways to view landscape mode.

check out this page for more info:
http://www.suhami.net/zaurus/snes/keybind

Basicly you need to export your new keys by typing this in the console:
export S9XKEYS=27,100,99,115,120,97,122,13,32,103,106,117,110,121,98,105,109

Those numbers are your control keys in this order:
Quit,A,B,X,Y,L,R,START,SELECT,LEFT,RIGHT,UP,DOWN,L+U,L+D,R+U,R+D

(quit = 27, A = 100, etc...)

You don\'t want to mess with the \"LEFT,RIGHT,UP,DOWN,L+U,L+D,R+U,R+D\" controls so leave those blank...

export S9XKEYS=27,100,99,115,120,97,122,13,32

Then use the key chart on the link I posted above to change those numbers to whatever keys you want to use for the controls.

Anonymous

  • Guest
How to run snes9x and other SDL applications in portrait...
« Reply #2 on: February 24, 2004, 01:50:24 am »
Well, that helps alot for the buttons, I was getting pised at the az and such.  As for the screen, I was looking at a japanese (I think, couldn\'t userstand it) site that dealt with libsdl poting (dealing with 1.2.5 stable I think, no cvs here) and I did however make out roate (in english, wow) on the site, I think I\'ll download the patch and see what it does (comments are hopefully in english), I hope that\'ll lead somewhere, otherwise maybe someon japanese could read it (probably has nothing to do with what I hope, but ah well.

Hmmm... so you turned the screen 270 degrees?  It was portrait but upside down?  Probably SDL related, if so rotating it the other way shouldn\'t be too hard, a simple patch for SDL should solve the problem, and be much nicer for playing

Anonymous

  • Guest
How to run snes9x and other SDL applications in portrait...
« Reply #3 on: February 29, 2004, 04:49:05 pm »
Oh, it can be done.  I was reading through the SDL 1.2.7 documentation (there is a readme file relating to qtopia) and the author specifically says one can run SDL apps fullscreen in both landscape and portrait modes.  I compiled SDL 1.2.7 for use with the qtopia libraries (\'twas a cross compile) yet, running snes9x gives me the good old \"Parachute deployed\" followed by a Segmentation Fault, good times...

I\'m going to try the sdl test apps (compiling now) to see if it\'s a problem with my compile or if anything runs.  If all\'s good maybe a recompile of snes9x is in order (the one circulating is rather old is it not anyways?

I should probably post in the devel forums, but I seem to recall the official snes9x not using SDL, maybe the snes9x/sdl for the z was a fork at one point, if anyone can point me to the code that\'d be great, thanks...

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
How to run snes9x and other SDL applications in portrait...
« Reply #4 on: April 26, 2004, 05:26:49 am »
I\'m curious if anyone ever did find a way to run snes9x in portrate mode.  Anyone care to respond?  I would love to be able to do this.
thanks
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #5 on: April 26, 2004, 08:58:05 am »
I would like to know the same thing.  But so far I have little to no luck be abel to run any sdl progames in something other than landscape mode.

JP

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #6 on: April 26, 2004, 09:49:07 am »
Would they fit? I think the SNES had a horizonal resolution exceeding the 240 pixels which would be available on a 5x00 IF rotated portrait. :?:
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #7 on: April 26, 2004, 09:57:45 am »
It does fit in landscap mode.  But Its A PAIN to play.  

JP

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
How to run snes9x and other SDL applications in portrait...
« Reply #8 on: April 26, 2004, 02:58:50 pm »
It IS a pain to play in landscape mode.  Doesn\'t it just need to be recompiled for portrait?  Then if it didn\'t fit the screen that would be another problem.  Oh well.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #9 on: April 26, 2004, 09:31:14 pm »
Form what I have read.  The resone it runs in landscape mode is becouse it was desjied for the C series ( of couse since this is open souce it make no differnce).  I have found the sdl varable that is used to roate the screen but the only thing I can do with it is invert, I beleave if its any thing other tham a muplay of 2 it dos not work.  If any DIA HARD HACKER is reading this can you give me some insight(as I am not a programer. And I am not a newbe.).  Thx

JP

skoorb

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #10 on: April 27, 2004, 12:11:36 am »
anybody get this working on and sl-6000??????

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
How to run snes9x and other SDL applications in portrait...
« Reply #11 on: April 27, 2004, 02:53:40 am »
Actually the reason why SDL runs in landscape by default is because of the natural orientation of the LCD/framebuffer for all of the Zaurus models. If you do not apply any rotation whatsoever, images on screen will appear in landscape. For the 5x00 and 6000 models Qtopia rotates everything 90 degrees clockwise by default.

If you apply any kind of rotation you have to start transposing the images, which will slow things down.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
How to run snes9x and other SDL applications in portrait...
« Reply #12 on: April 30, 2004, 03:40:33 am »
hey CoreyC or anybody else who can help out here,  i want to use (m,n,j,k) as my abxy keys but in the game these keys act as both what i changed them to and direction keys.  how do i stop them from being direction keys(i dont want mario to jump and crouch at the same time)?  i use the pad for direction and dont need other keys doing the same thing.

i tried adding the direction key numbers to the export command:  export S9XKEYS=27,106,110,109,107,98,104,13,8,274,273,276,275.  as you can see i used 274,273,276,275 and while that corected my problem of the abxy keys it made the pad do only walk left and crouch.  maybe i got the numbers wrong?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

demosthenes

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://
How to run snes9x and other SDL applications in portrait...
« Reply #13 on: April 30, 2004, 06:38:47 am »
I\'ve been playing on my sl-5500 using a pocketop keyboard. It suprisingly works like a charm by simply turning IRK on and starting up snes9x. The only down side is... no easy handheld gaming... (since you have to set up the keyboard).

Here is the script i use to play

Code: [Select]
#! /bin/sh

export S9XKEYS=27,99,120,100,115,97,122,13,32,106,108,105,107,110,111,44

SDL_QT_ROTATION=2 snes9x -ns $1


I put that in the file \"s9x\" and just run this command to play.
Code: [Select]
s9x /mnt/cf/snes/zelda.smc

dont forget to
Code: [Select]
chmod +x s9x

Lately I made a different shell script for each game I have. I also made icons for each game in png format so I can just start a game from the launcher. If anyone would like them let me know.

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
How to run snes9x and other SDL applications in portrait...
« Reply #14 on: May 01, 2004, 05:09:47 am »
Hey thanks for the tips demosthenes.  Anyone else have any ideas on how I can fix my other problem?  Would someone care to post what keys they use for their 5500 or 5600?

Thanks again.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)