First and foremost, thank you so much for all the hard work on this emulator, I love it so far and looking forward to playing lot's of my favorite childhood games once I get everything working. Was hoping someone might have an idea why I'm running into some challenges trying to get a USB controller to work with CoolCV as part of a RetroPie installation. The hardware is a Raspberry Pi 3 and a Logitech F310 USB controller. I know I need to edit the coolcv_mapping.txt file as described in the RetroPie Wiki and I think I've get it set correctly, but what the codes I'm adding to the mapping file doesn't seem to be working in emulator. I pulled the SDL joystick codes using a Windows CoolCV install and one of the controllers and for reference, these are the codes I got for the controller (the section in the () is what coleco action I was hoping to map to the F310.)
A = JOY0_10 (Left Button)
B = JOY0_11 (Right Button)
X = JOY0_12 (Keypad 1)
Y = JOY0_13 (Keypad 2)
Dpad Up = JOY0_0 (Up)
Dpad Dn = JOY0_1 (Down)
Dpad Lt = JOY0_2 (Left)
Dpad Rt = JOY0_3 (Right)
Back = JOY0_5 (Pause)
Start = JOY0_4 (Exit)
Back + Start (Reset)
Lt Bump = JOY0_8 (Keypad 3)
Rt Bump = JOY0_9 (Keypad 4)
I've left most of the mapping file at the normal defaults and only tweaked the info for a few of the keys that I want so I can at least get a game running, play and exit the emulator from the controller. Here's my
current coolcv_mapping.txt file (I'm not including the whole file, just the key parts).
' CoolCV mappings for Colecovision controllers to keyboard and joystick
up_1 key1073741906 joy0_0
right_1 key1073741903 joy0_3
down_1 key1073741905 joy0_1
left_1 key1073741904 joy0_2
left_button_1 key32 joy0_10
right_button_1 key109 joy0_11
button3_1 key1073741939
button4_1 key1073741939
key1_1 key49 joy0_12
key2_1 key50 joy0_13
key3_1 key51
key4_1 key52
...
...
key_exit key1073741939 joy0_4
key_pause key1073741884 joy0_5
key_reset key8 joy0_4 joy0_5
Right now I have the mapping file both in /home/pi/ and /home/pi/RetroPie/configs/coleco directories but none of the controls I've set are working. I can't get any keypad input (I can still start a game with a keyboard by pushing the related # key), the left analog stick does move the character Left/Right/Up/Down correctly (D-Pad doesn't do anything) and the only buttons on the controller that do anything are the X/Y which move the character Left and Right respectively.
Anyone have any thoughts on what I might be missing, it's gotta be something stupid...