Author Topic: Sdl For Horizontal Vga  (Read 2699 times)

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Sdl For Horizontal Vga
« on: December 22, 2004, 07:39:06 pm »
I've searched the forums and installed half a dozen libraries but have yet to get a version of SDL that reports 640x480 as opposed to 480x640 to applications. Meaning, even in horizontal aspect on a C Series, the image is portrait.

For example, in a feeble attempt to get VisualGBA to play Chu Chu Rocket on my C3000, the image is drawn sideways. My unit, which lacks keys in portrait mode, is useless--unless of course, I hold it like a book.

Does anyone have a link to a libSDL that properly reports a horizontal viewing mode to an application?
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Sdl For Horizontal Vga
« Reply #1 on: December 22, 2004, 08:09:18 pm »
I got my libsdl for my Zaurus SL-C760 from SourceForge.  You can get the latest version there.

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Sdl For Horizontal Vga
« Reply #2 on: December 22, 2004, 09:35:11 pm »
Thanks. I guess there's no point in improving VisualBoyAdvance. I have a different problem [bad topic] now.

The direction keys inside snes9x are completely inverted: up is down, right is left, etc. Are there any solutions? I checked a snes9x website, revealing that there are definitely no command-line options to modify.
« Last Edit: December 22, 2004, 09:38:43 pm by spartan »
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Sdl For Horizontal Vga
« Reply #3 on: December 23, 2004, 08:13:48 pm »
You can remap the keys with KeyHelper, but you might have to remap them back to the original keys after playing your game.  You can search these forums for messages about KeyHelper.

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Sdl For Horizontal Vga
« Reply #4 on: January 09, 2005, 03:36:03 pm »
you can remap the snes9x keys.

But its tricky.

you have to export S9XKEYS as

export S9XKEYS=27,32,293,291,290,111,112,13,46

I put that in my /etc/profile so I dont have to worry about it.

The application keys (on a 5500 anyway) are
Calendar=290
Contacts=291
Home=293
Menu=292
Mail=294(?)
There are oddities with Menu and Mail.  I have to hold down another key to get them to work.

Here is a text file that has all the SDL keys.



   Å Ã‚‹«•ϐ” S9XKEYS
   Quit,A,B,X,Y,L,R,START,SELECT,LEFT,RIGHT,UP,DOWN,L+U,L+D,R+U,R+D
   â€šÃŒÂâ€¡â€Ã”‚ʼnº‹LÆ’L[Æ??
R[ƒh‚ðŽw’肵‚Ü‚·B
   (QTӁSDL‚ŃTÆ’|[Æ’g‚³‚êâ€
?éƒL[ƒR[ƒh‚̂ݗLŒø)

   Å Ã‚‹«•ϐ”‚ðƒZÆ’bÆ’g‚Â
?‚Ä‚¢‚È‚¢ê‡‚ÍË??
ȉÂ
‚ÌŽw’è‚Æ“¯—l‚Å‚?
·ÂB

   export S9XKEYS=27,100,99,115,120,97,122,13,32,103,106,117,110,121,98,105,109

   Æ’J[Æ’\ƒ‹ƒL[‚Í–³ðŒ‚Å
?’AÆ’TÆ’Cƒ“‚³‚êã‹L8•û?
’Ã
Æ’L[‚Æ‚QdÆ’AÆ’TÆ’Cƒ“‚Æâ
??šÃˆâ€šÃ¨â€šÃœâ€šÂ·ÂB

   SDLK_BACKSPACE      = 8,
   SDLK_TAB      = 9,
   SDLK_CLEAR      = 12,
   SDLK_RETURN      = 13,
   SDLK_PAUSE      = 19,
   SDLK_ESCAPE      = 27,
   SDLK_SPACE      = 32,
   SDLK_EXCLAIM      = 33,
   SDLK_QUOTEDBL      = 34,
   SDLK_HASH      = 35,
   SDLK_DOLLAR      = 36,
   SDLK_AMPERSAND      = 38,
   SDLK_QUOTE      = 39,
   SDLK_LEFTPAREN      = 40,
   SDLK_RIGHTPAREN      = 41,
   SDLK_ASTERISK      = 42,
   SDLK_PLUS      = 43,
   SDLK_COMMA      = 44,
   SDLK_MINUS      = 45,
   SDLK_PERIOD      = 46,
   SDLK_SLASH      = 47,
   SDLK_0         = 48,
   SDLK_1         = 49,
   SDLK_2         = 50,
   SDLK_3         = 51,
   SDLK_4         = 52,
   SDLK_5         = 53,
   SDLK_6         = 54,
   SDLK_7         = 55,
   SDLK_8         = 56,
   SDLK_9         = 57,
   SDLK_COLON      = 58,
   SDLK_SEMICOLON      = 59,
   SDLK_LESS      = 60,
   SDLK_EQUALS      = 61,
   SDLK_GREATER      = 62,
   SDLK_QUESTION      = 63,
   SDLK_AT         = 64,
   /*
      Skip uppercase letters
    */
   SDLK_LEFTBRACKET   = 91,
   SDLK_BACKSLASH      = 92,
   SDLK_RIGHTBRACKET   = 93,
   SDLK_CARET      = 94,
   SDLK_UNDERSCORE      = 95,
   SDLK_BACKQUOTE      = 96,
   SDLK_a         = 97,
   SDLK_b         = 98,
   SDLK_c         = 99,
   SDLK_d         = 100,
   SDLK_e         = 101,
   SDLK_f         = 102,
   SDLK_g         = 103,
   SDLK_h         = 104,
   SDLK_i         = 105,
   SDLK_j         = 106,
   SDLK_k         = 107,
   SDLK_l         = 108,
   SDLK_m         = 109,
   SDLK_n         = 110,
   SDLK_o         = 111,
   SDLK_p         = 112,
   SDLK_q         = 113,
   SDLK_r         = 114,
   SDLK_s         = 115,
   SDLK_t         = 116,
   SDLK_u         = 117,
   SDLK_v         = 118,
   SDLK_w         = 119,
   SDLK_x         = 120,
   SDLK_y         = 121,
   SDLK_z         = 122,
   SDLK_DELETE      = 127,
   /* Arrows + Home/End pad */
   SDLK_UP         = 273,
   SDLK_DOWN      = 274,
   SDLK_RIGHT      = 275,
   SDLK_LEFT      = 276,
   SDLK_INSERT      = 277,
   SDLK_HOME      = 278,
   SDLK_END      = 279,
   SDLK_PAGEUP      = 280,
   SDLK_PAGEDOWN      = 281,

   /* Function keys */
   SDLK_F1         = 282,
   SDLK_F2         = 283,
   SDLK_F3         = 284,
   SDLK_F4         = 285,
   SDLK_F5         = 286,
   SDLK_F6         = 287,
   SDLK_F7         = 288,
   SDLK_F8         = 289,
   SDLK_F9         = 290,
   SDLK_F10      = 291,
   SDLK_F11      = 292,
   SDLK_F12      = 293,
   SDLK_F13      = 294,
   SDLK_F14      = 295,
   SDLK_F15      = 296,

   /* Key state modifier keys */
   SDLK_NUMLOCK      = 300,
   SDLK_CAPSLOCK      = 301,
   SDLK_SCROLLOCK      = 302,
   SDLK_RSHIFT      = 303,
   SDLK_LSHIFT      = 304,
   SDLK_RCTRL      = 305,
   SDLK_LCTRL      = 306,
   SDLK_RALT      = 307,
   SDLK_LALT      = 308,
   SDLK_RMETA      = 309,
   SDLK_LMETA      = 310,
   SDLK_LSUPER      = 311,      /* Left "Windows" key */
   SDLK_RSUPER      = 312,      /* Right "Windows" key */
   SDLK_MODE      = 313,      /* "Alt Gr" key */
   SDLK_COMPOSE      = 314,      /* Multi-key compose key */

   /* Miscellaneous function keys */
   SDLK_HELP      = 315,
   SDLK_PRINT      = 316,
   SDLK_SYSREQ      = 317,
   SDLK_BREAK      = 318,
   SDLK_MENU      = 319,
   SDLK_POWER      = 320,      /* Power Macintosh power key */
   SDLK_EURO      = 321,      /* Some european keyboards */
   SDLK_UNDO      = 322,      /* Atari keyboard has Undo */

LukeLuke

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Sdl For Horizontal Vga
« Reply #5 on: September 09, 2005, 11:21:30 am »
Quote
you can remap the snes9x keys.

But its tricky.

you have to export S9XKEYS as

export S9XKEYS=27,32,293,291,290,111,112,13,46

I put that in my /etc/profile so I dont have to worry about it.

The application keys (on a 5500 anyway) are
Calendar=290
Contacts=291
Home=293
Menu=292
Mail=294(?)
There are oddities with Menu and Mail.  I have to hold down another key to get them to work.

I have a problem with snes9x (Hentges ROM) on my SL-5500, the key is ok but the buttons fire are letter C or D....

I have make the export and it's work when launch snes by command line, but when use the icons of snes no.....what can i do?

THANKS

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Sdl For Horizontal Vga
« Reply #6 on: September 09, 2005, 11:43:07 am »
https://www.oesf.org/forums/index.php?showtopic=14102

i also got visualboy to run landscape mode.
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software