Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Z26 (Atari 2600) - Key Commands Numbers?


Recommended Posts

Posted

Does anyone know the keyboad and joystick (Player 1 and Player 2) number commands so I can setup the joypad and XArcade in Z26 emulator please

I have attached the INI (CFG) file if you need to look at it as Z26 uses this to map the keys.

Thanks.

Posted

The Atari doesn't have a "Player 1" and "Player 2" command. It has "Select" and "Reset". There are also two "difficulty" switches on the back of the Atari (one for each player).

I modified my Z26 to allow me to assign all the necessary functions to joystick buttons (including a routine to make the difficulty switches a toggle) I submitted the changes to the author but got no response. If you're interested let me know and I'll attach my version.

Posted

With this modified version, you can assign a joystick button to Reset (start), Select, and a difficulty toggle. To enable this on the command line, you can pass in

-j[a|b][r|s|d][N]

Where [a|b] is a for Joystick A or b for Joystick B, [rs|d|] is for Reset, Select, or Difficulty, and [N] is the DirectX button # to assign to it. So in my z26.cli I have:

-jar6 â??jas7 â??jad4

Which assigns them to my Xbox controllerâ??s Start, Select and X buttons. You can also assign buttons to the 2nd joystickâ??s buttons as well (e.g. â??jar6 â??jbr6) so either player can do a reset if they want. Users can find the button numbers in the Control Panel, Game Controller section.

z26.zip

Posted

thanks.

althouh how do u map more than one fire button into the xbox controller.

what i mean is say Asteroids, needs a couple of fire buttons (fire, shield and teleport), how do you map the exra fire buttons to the xbox controller using this method please?

Posted
  djrobx said:
The atari 2600 joystick only has one button.

Teleport is joystick down, thrust is joystick up.

doh!!! yeah

also i have tested this but all i get via gameex and running it with the extra command line commands is a blank screen?

can you post your gameex setup pls?

Posted

The way I pass the parameters in is using the z26.cli file. z26.cli goes wherever z26.exe is. Keeps the gameex config a bit neater. It should work on the command line too, though.

[Emulator_5]

Enabled=True

StartPageName=Atari 2600 Games

TitleText=Atari 2600 Games

StartPageLogo=2600

RomFilter=*.bin

RomsInFolders=False

ROMPath=R:\Games\atari2600\roms

SnapPath=R:\Games\atari2600\snaps

WorkingPath=R:\Games\atari2600\z26

MapKeys=True

WaitBeforeKeys=

SendKeys=

ReplaceDash=True

ReplaceUnder=True

Capitals=True

RemoveBrackets=True

AlsoLaunch=

ShowDesktop=False

Debug=False

MapFile=R:\Games\atari2600\atari2600.map

OLDatZip=

Command=z26.exe "[ROMPath]\[RomFile]"

TitlePath=

BoxPath=

LaunchBefore=

LaunchAfter=

CartPath=

and the contents of my z26.cli:

-v22 -iMSK -jar6 -jas7 -jad3 -P85 -r -u38

Posted

sorry what do you mean the contents of your CLI?

You mean the command line options under the icon of the z26???

Please explain as I still can't get this working. thanks.

Posted

Z26 has the ability to set default options. It stores them in a file named z26.cli. If you go to a command prompt and type:

z26.exe -v22 -iMSK -jar6 -jas7 -jad3 -P85 -r -u38

it will save those options in a z26.cli file.

Now, if you run

z26.exe Kaboom.bin

all of the above options will apply. That way you don't have to keep specifying the options on the command line.

Posted

thanks but what does all the -p, -r, -u and that mean

I need to add a button to exit the game (emulator) and i want to use the black xbox controller button (like all my other emulators)

have you got a full list of the commands that can be set via the cli files please.

i appreciate the help.

Posted

Sorry I never made that assignable since I use GameEx's quit feature. I can probably add it easily enough.

-P85 aligns the paddle so the center of the XBox stick is the center of the 2600 paddle controller. Z26's default is off-center. Not that the analog stick is great for playing paddle games, but it's better than nothing.

-r makes Z26 use Windows' refresh rate. I needed it in order to run at 60hz.

-u38 has to do with the vertical display centering. Seemed to work best for the games I play most.

Posted

i would appreciate it if you could add it please - i'm attempting to create a cli creator as well to map controller keys to to make life easier for all.. but my programming skills aint want they used to be - lol

i would appreciate an updated z26 file though that allows me to exit via the controller.

let me know what you think and if you can help further m8.

thanks.

  • 3 weeks later...
Posted

could you please list the codes for each of the atari commands please as I still haven't got this working properly. thanks.

Posted

also i notice that the z26 also has an .ini file which is displayed below using scancodes. but the normal scancodes don't appear to be working, can anyone tell me what these are and how I would add my joysticks (joy1 and joy2) to the file using codes please...

FILE CONTENTS BELOW;

[keymaps]

P1Left = 276

P1Right = 275

P1Up = 273

P1Down = 274

P1Fire = 306

P1Left = 276

P1Right = 275

P1TriggerBG = 308

P1BoosterBG = 32

P1Up = 273

P1Down = 274

P1Fire = 306

P1TriggerBG = 308

P1BoosterBG = 32

P2Left = 100

P2Right = 103

P2Up = 114

P2Down = 102

P2Fire = 97

P2TriggerBG = 115

P2BoosterBG = 113

P2Left = 100

P2Right = 103

P2Up = 114

P2Down = 102

P2Fire = 97

P2TriggerBG = 115

P2BoosterBG = 113

P1Pad1 = 55

P1Pad2 = 56

P1Pad3 = 57

P1Pad4 = 117

P1Pad5 = 105

P1Pad6 = 111

P1Pad7 = 106

P1Pad8 = 107

P1Pad9 = 108

P1PadStar = 109

P1Pad0 = 44

P1PadPound = 266

P2Pad1 = 286

P2Pad2 = 287

P2Pad3 = 288

P2Pad4 = 286

P2Pad5 = 289

P2Pad6 = 290

P2Pad7 = 291

P2Pad8 = 292

P2Pad9 = 293

P2PadStar = 294

P2Pad0 = 295

P2PadPound = 296

ResetKey = 49

SelectKey = 50

BWKey = 284

ColorKey = 285

P0Easy = 122

P0Hard = 120

P1Easy = 101

P1Hard = 93

Pause = 282

Resume = 283

ScreenDump = 293

SwitchPalette = 300

ShiftUp = 301

ShiftDown = 302

ShiftDefault = 303

SwitchMouse = 316

Quit = 27

Quit = 27

Quit2 = 320

Guest
This topic is now closed to further replies.
×
×
  • Create New...