Jump to content
IGNORED

jzintv on Mac: Second controller not working


gerbil

Recommended Posts

I just bought a second controller so I could play two player games with jzintv (20200712 on Mac).

 

Both controllers are recognized when the emulator starts up:

 

joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Logitech Dual Action"
joy:     4 axes, 0 trackball(s), 1 hat(s), 12 button(s)
joy:  Joystick JS1 "Logitech Dual Action"
joy:     4 axes, 0 trackball(s), 1 hat(s), 12 button(s)

 

Both joysticks report events in ‘event_diag' properly. 

 

But when I go to play a game, it seems to ignore the second controller.  The first controller works as usual, but the second controller does nothing.

 

I’ve created kbdhack files to attempt to map JS1, then also tried removing my kbdhack file and using the defaults.  I've tried a few different macs too, no joy, literally.🕹

 

Any ideas?

Link to comment
Share on other sites

I got it to work by giving the doc/joystick.txt a close reading.

 

It says:

 

Quote

By default, jzIntv maps the first joystick's stick input to the left
controller's disc input with the following bindings:


[...] to create bindings for a
second, third or fourth joystick, you will need to write a kbdhackfile
to generate these bindings.

So I created the following bindings and it worked:

 

; Map right controller
JS1A_E      PD0R_J_E
JS1A_ENE    PD0R_J_ENE
JS1A_NE     PD0R_J_NE
JS1A_NNE    PD0R_J_NNE
JS1A_N      PD0R_J_N
JS1A_NNW    PD0R_J_NNW
JS1A_NW     PD0R_J_NW
JS1A_WNW    PD0R_J_WNW
JS1A_W      PD0R_J_W
JS1A_WSW    PD0R_J_WSW
JS1A_SW     PD0R_J_SW
JS1A_SSW    PD0R_J_SSW
JS1A_S      PD0R_J_S
JS1A_SSE    PD0R_J_SSE
JS1A_SE     PD0R_J_SE
JS1A_ESE    PD0R_J_ESE

I was sure I'd tried that, but I must have made a mistake with my previous attempt at mapping the right controller. 😔

 

Anyway, it works. Yay!

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...