OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: SiduS on August 10, 2006, 09:13:41 pm

Title: Snes9x Configuration
Post by: SiduS on August 10, 2006, 09:13:41 pm
Ok I obviously am not as good as InSearchOf using google to find answers. Or the program's page itself.

Where can I configure the keybindings for snes9x?
Title: Snes9x Configuration
Post by: SiduS on August 11, 2006, 01:01:41 am
Ok I finally finally found the answer. IMO its rediculous but Its the only way I can find to remap keysbindings in snes9x SDL for zaurus

http://www.handhelds.org/moin/moin.cgi/snes9x (http://www.handhelds.org/moin/moin.cgi/snes9x)

Basically you have to export S9XKEYS and set all the values.

The SDL values can be found in the keybind file

But for quick reference:

Key order:
Quit,A,B,X,Y,L,R,START,SELECT,LEFT,RIGHT,UP,DOWN,L+U,L+D,R+U,R+D

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

SDL Key Reference:

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 */
Title: Snes9x Configuration
Post by: bam on August 11, 2006, 01:10:04 am
now this is useful info!
Title: Snes9x Configuration
Post by: InSearchOf on August 11, 2006, 08:22:00 am
There is another way...

By using snes9x -keymap keymap.ctl

I just cant find how you need to format the contents in the *.ctl file...

Snes9x looks for the a keymap in /home/root/.snes9x_snapshots/, where ever the executable is... and somewhere else I forgot... but if it doesnt find one it uses what it has set by default...

Late