Homepage › Forums › RetroPie Project › Controller Configuration in RetroPie › VICE C64 configuration for two gamepads
- This topic has 7 replies, 3 voices, and was last updated 8 years, 8 months ago by tmar89.
-
AuthorPosts
-
02/25/2016 at 23:05 #118159sabicasParticipant
I have two Logitech Dual Action gamepads and the C64 emulator is treating them both as the same gamepad. For example, in a two player game, only one player reacts on the screen…………and it reacts to both gamepads in the same way. It’s as if both gamepads are virtually plugged into the same joystick port. Using the “switch ports” button simply switches them both at the same time. Here’s how I have the controllers set up in the config:
# joystick 1
0 0 0 1 0 8
0 0 1 1 0 4
0 0 2 1 0 2
0 0 3 1 0 1
0 0 4 0
0 0 5 0
0 0 6 0
0 0 7 0# Buttons
0 1 0 0
0 1 1 1 0 16
0 1 2 0
0 1 3 0
0 1 4 5 Speed settings&Warp mode
0 1 5 5 Machine settings&Joystick settings&Swap joystick ports
0 1 6 5 Snapshot&Quickload snapshot.vsf
0 1 7 5 Snapshot&Quicksave snapshot.vsf
0 1 8 5 Quit emulator
0 1 9 4
0 1 10 0
0 1 11 0#joystick 2
1 0 0 1 0 8
1 0 1 1 0 4
1 0 2 1 0 2
1 0 3 1 0 1
1 0 4 0
1 0 5 0
1 0 6 0
1 0 7 0# Buttons
1 1 0 0
1 1 1 1 0 16
1 1 2 0
1 1 3 0
1 1 4 5 Speed settings&Warp mode
1 1 5 5 Machine settings&Joystick settings&Swap joystick ports
1 1 6 5 Snapshot&Quickload snapshot.vsf
1 1 7 5 Snapshot&Quicksave snapshot.vsf
1 1 8 5 Quit emulator
1 1 9 4
1 1 10 0
1 1 11 0Any help would be appreciated. Also, if I open up a two player game in another emulator, such as Atari 2600, the controllers function as expected with each controlling it’s corresponding player. This is for a RPi 2 with whatever version of Retropie was current about a week ago.
02/26/2016 at 00:39 #118173sabicasParticipantOk, the vice joystick config is strange but I have it working. I had to actually map each joystick (four directions and “fire” button) and then save mapping. I thought the configuration that I posted above took care of that.
02/26/2016 at 01:36 #118183hobbswonParticipantAre you manually configuring the joystick or using the menu? Where are the config files for VICE?
For some weird reason my gamepads fire button, when mapped, resets some games. Others wirk ok.
I am desperately trying to find a solution for VICE. I cannot use a single game pad for most games let alone 2.
02/26/2016 at 18:01 #118255sabicasParticipantYou can find the joystick mapping file here:
/opt/retropie/configs/c64/sdl-joymap-C64.vjmYou’ll need to use the c64 keyboard mapping found here:
http://sta.c64.org/cbm64kbdlay.htmlHere’s what you’ll find by default in the joymap file.
# Buttons
0 1 0 0
0 1 1 1 0 16 # this is the “fire” button and is the only one of the A, B, X, Y gamepad buttons assigned.
0 1 2 2
0 1 3 2To assign one of my unused buttons to trigger the spacebar which is used in so many games, I did this:
{Joystick # 0 1} { Axis 0/Button 1/Hat 2/Ball 3} {Index on joypad 1-9} {Action} (Action Commands) 0 1 1 2 7 4In this case, joystick 0, axis 1 (button), index 1 (button 1), the spacebar command is Keyboard, row 7, column 4 on the keyboard (look at the keyboard map image)
# Buttons
0 1 0 0 #this button does nothing, I might assign it to F1 key (0 1 0 0 0 4)
0 1 1 1 0 16 # this is the “fire” button
0 1 2 2 7 7 # I have this button mapped to the c64 run/stop key
0 1 3 2 7 4 # I have this button mapped to the space barI hope that makes sense.
02/26/2016 at 18:56 #118268hobbswonParticipantHi,
Thanks so much for the reply.
I cannot find the joymap file though.
In
/opt/retropie/configs/c64
I have 2 files
emulators.cfg
andsdl-vicerc
Inside of sdl-vicerc there is a line that points to the following
/home/pi/.vice/sdl-joymap-c64.vjm
but when I sudo nano to the directory it creates a new file./home/pi/.vice
is a symbolic link, hiwever. Maybe the files are hidden?02/26/2016 at 20:31 #118275hobbswonParticipantNvm, I got it. Had to save joypad mapping inside the VICE menu to create the file.
Gonna see if I can tackle this now.
02/27/2016 at 01:22 #118311hobbswonParticipantOk,
So, I’m using an 8bitdo NES30 Pro and I’m having major issues.
1 – navigating the menu only works with the left analog stick, it’s unavigable with the dpad (jumps all over).
2 – any button resets the game. So say a game loads an intro. Any button I press will loop the intro back to the beginning.
I understand the way the mapping is laid out in the cfg file but I just don’t know which controls are the ones when navigating the GUI.
There’a a few more lines of input on my gamepafs cfg file.
# 8Bitdo NES30 Pro Joystick
0 0 0 1 1 8
0 0 1 1 1 4
0 0 2 1 1 2
0 0 3 1 1 1
0 0 4 1 0 8
0 0 5 1 0 4
0 0 6 1 0 2
0 0 7 1 0 1
0 0 8 1 1 8
0 0 9 1 1 4
0 0 10 1 1 2
0 0 11 1 1 10 1 0 1 0 16
0 1 1 4
0 1 2 3
0 1 3 1 0 16
0 1 4 1 0 16
0 1 5 4
0 1 6 3
0 1 7 1 0 16
0 1 8 1 0 16
0 1 9 4
0 1 10 3
0 1 11 1 0 16
0 1 12 1 0 16
0 1 13 4
0 1 14 3
0 1 15 1 0 16
0 1 16 1 0 16
0 1 17 4
0 1 18 3
0 1 19 1 0 16
0 1 20 1 0 16
0 1 21 40 2 0 1 1 1
0 2 1 1 1 2
0 2 2 1 1 4
0 2 3 1 1 80 3 0 0
02/29/2016 at 22:01 #118624tmar89Participanthey, from the youtube link here. I never tried a two player game and two joysticks. could you let me know what game you’re playing and I can try it on my system.
-
AuthorPosts
- The forum ‘Controller Configuration in RetroPie’ is closed to new topics and replies.