Main > Main Forum

Emulating a 4-way joystick

<< < (2/2)

RayB:
How does one get the "NOT" part ? Or is this strictly done via direct editing of the CFG files?

JZSlenker:
you can get the NOT by hitting the not key two times fast.

For example if you wanted up not right you would do the following....

ENTER on the UP line then press UP  RIGHT RIGHT 

If you are too slow on the RIGHT RIGHT you will end up with UP being assigned to UP AND RIGHT

It's easier to edit the cfg file though if you want a more complicated line like..
UP=UP OR R NOT LEFT NOT RIGHT NOT D NOT G

u_rebelscum:

--- Quote from: JZSlenker on February 18, 2010, 01:42:24 pm ---So for a game like pacman to disable diagonals for both joysticks I can do...

UP=UP OR R NOT LEFT NOT RIGHT NOT D NOT G
LEFT=LEFT OR D NOT UP NOT DOWN NOT R NOT F
etc etc

--- End quote ---

Close.  Mame uses Ors to separate groups.  So as shown mame sees:
UP = (UP) OR (R NOT LEFT NOT RIGHT NOT D NOT G)
etc

So up-right is fine for the first group, so mame will treat stick 1 as an 8-way and stick 2 as a 4-way as long as stick 1 isn't used.

You want:
UP = UP NOT LEFT NOT RIGHT OR R NOT D NOT G
LEFT = LEFT NOT UP NOT DOWN OR D NOT R NOT F

A little more human readable:
UP = (Up not Left not Right)   OR   (R not D not G)


--- Quote from: JZSlenker on February 18, 2010, 03:49:15 pm ---It's easier to edit the cfg file though if you want a more complicated line like..

--- End quote ---

I find hand editing the cfg easy too, but using mame's UI isn't too hard for those who like GUIs, either. 
The map I suggested:
For UP: enter, up, right, right, left, left, wait about 1 second for mame to register, R, D, D, G, G, wait.
(repeat for other directions)
OTOH, I will often most of the above in a test editor.

Navigation

[0] Message Index

[*] Previous page

Go to full version