Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: pacman on March 06, 2006, 03:53:44 am

Title: Z26 emulator and game start?
Post by: pacman on March 06, 2006, 03:53:44 am
I am using the Z26 emulator with the modified ini file for Mame cabs (I have a Jamma cab with J-pac). I noticed that the original 'select' button of the Atari 2600 is mapped on the keyboard key 1 which is the 'start player 1' on my cab. As most of the games will start by pressing the fire button that's not the case for many of them (eg Space invader). What should I do to then?  ???  Also the reset button is mapped on the F2 key and therefore cannot control it from the cab panel. Do you know the code to be changed in the ini file so that reset will be mapped on key 2 (start player 2) ?
Title: Re: Z26 emulator and game start?
Post by: jcrouse on March 06, 2006, 10:21:58 am
Exactly which version of Z26 are you using? Where did you get it from? There are a few hacked version (that use ini files) floating around.

John
Title: Re: Z26 emulator and game start?
Post by: Congui on March 06, 2006, 10:41:49 am
Hi there,

Depending on which version you're using it might be either 50 or SDLK_2.  Any way,  here is a list of codes to use:

Here is the list of the SDL codes from from SDL_keysym.h.

   SDLK_UNKNOWN      = 0,
   SDLK_FIRST      = 0,
   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,
   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,
   SDLK_KP0      = 256,
   SDLK_KP1      = 257,
   SDLK_KP2      = 258,
   SDLK_KP3      = 259,
   SDLK_KP4      = 260,
   SDLK_KP5      = 261,
   SDLK_KP6      = 262,
   SDLK_KP7      = 263,
   SDLK_KP8      = 264,
   SDLK_KP9      = 265,
   SDLK_KP_PERIOD      = 266,
   SDLK_KP_DIVIDE      = 267,
   SDLK_KP_MULTIPLY   = 268,
   SDLK_KP_MINUS      = 269,
   SDLK_KP_PLUS      = 270,
   SDLK_KP_ENTER      = 271,
   SDLK_KP_EQUALS      = 272,
   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,
   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,
   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 */
   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 */


Hope this helps.

Cheers,
Congui
Title: Re: Z26 emulator and game start?
Post by: pacman on March 06, 2006, 02:51:31 pm
thanks Congui, it's working now ;D
Title: Re: Z26 emulator and game start?
Post by: Congui on March 06, 2006, 08:12:22 pm
No problem; just glad to help.
Title: Re: Z26 emulator and game start?
Post by: mccoy178 on March 07, 2006, 03:05:26 am
Hey, you wouldn't happen to have those inputs for joys do you? ;D  That would be excellent.
Title: Re: Z26 emulator and game start?
Post by: Congui on March 07, 2006, 09:13:38 am
Sorry.  I only use the codes I posted before:
P1Left = 276 (SDLK_LEFT)
P1Right = 275 (SDLK_RIGHT)
P1Up = 273 (SDLK_UP)
P1Down = 274 (SDLK_DOWN)
P2Left = 115 (SDLK_s)
P2Right = 102 (SDLK_f)
P2Up = 101 (SDLK_e)
P2Down = 100 (SDLK_d).

Any way, let me get home (I'm at work now) and look for the stella documentation  and see what I can get (I asume you want the joystick perse codes).

Cheers,
Congui
Title: Re: Z26 emulator and game start?
Post by: mccoy178 on March 07, 2006, 01:50:43 pm
Yes, that is what I'm looking for, thanks!
Title: Re: Z26 emulator and game start?
Post by: jcrouse on March 07, 2006, 02:07:48 pm
mccoy178: Are you using the hacked Z26 from my website? It so look at the readini.txt file in the docs folder. When you find it RTFM!

 ;D
John
Title: Re: Z26 emulator and game start?
Post by: mccoy178 on March 07, 2006, 05:53:07 pm
JCrouse.  Bustin' balls at BYOAC since 2004. ;D
Title: Re: Z26 emulator and game start?
Post by: jcrouse on March 07, 2006, 06:19:00 pm
Amen brotha! I would do it for any Buckeye fan!!!!!!

 ;D
John
Title: Re: Z26 emulator and game start?
Post by: Congui on March 08, 2006, 11:02:32 am
Yes, that is what I'm looking for, thanks!

Looked yesterday, and couldn't find joystick codes.  Sorry.

Congui
Title: Re: Z26 emulator and game start?
Post by: mccoy178 on March 08, 2006, 11:56:45 am
No problem.  Thanks for the effort.  Oh John...............
Title: Re: Z26 emulator and game start?
Post by: jcrouse on March 08, 2006, 12:05:29 pm
I take it they are Heisman winners? Only six? Actually five since Archie won twice. And how many National Championships?

Geez,
John