RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    CoolCV not recognizing d-pad

    Scheduled Pinned Locked Moved Help and Support
    coolcvd-pad
    4 Posts 2 Posters 526 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pajordan
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • P
        pajordan
        last edited by

        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).

        1 Reply Last reply Reply Quote 0
        • G
          grant2258 Banned
          last edited by

          Its very odd for a dpad to register as an analog axis what controller are you using?

          P 1 Reply Last reply Reply Quote 0
          • P
            pajordan @grant2258
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.