CoolCV not recognizing d-pad
-
i'm trying to use the CoolCV emulator on my GPi case (RetroPie 4.2 built from pre-made SD Image on RetroPie website running on a Pi Zero W).
i ssh'ed into the Pi and ran jstest (
jstest /dev/input/js0
) to determine my controller button and axes numbers. when i press up or down on the d-pad, this registers under axis 7; left or right register as axis 6.i modified the first few lines of the coolcv_mapping.txt file (
/home/pi/coolcv_mapping.txt
) to reflect these axis values:' CoolCV mappings for Colecovision controllers to keyboard and joystick joystick_1_vert joy0 axis7 joystick_1_horiz joy0 axis6 joystick_2_vert joy1 axis1 joystick_2_horiz joy1 axis0 up_1 key1073741906 right_1 key1073741903 down_1 key1073741905 left_1 key1073741904 left_button_1 key32 joy0_3 right_button_1 key109 joy0_1 button3_1 key1073741939 button4_1 key1073741939 key1_1 key49 joy0_3 key2_1 key50 joy0_1 key3_1 key51 joy0_2 key4_1 key52 joy0_0
when i launch a rom, my controller buttons seem to be mapped fine - i'm able to start a game and use the controller buttons - but i can't use the d-pad to control the game character.
any idea on how i can get this working?
-
still curious about how to do this in coolcv, but i ended up trying lr-bluemsx instead and it works fine (all the controls were already mapped by default and work great).
-
Its very odd for a dpad to register as an analog axis what controller are you using?
-
@grant2258
it's the built-in controller for the Retroflag GPi case (http://retroflag.com/GPi-CASE.html) - i think it's connected like a USB gamepad, though i'm not sure.thanks
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.