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

    Using a gamepad with CoolCV (Colecovision emulator)

    Scheduled Pinned Locked Moved Help and Support
    colecovisiongamepad config
    20 Posts 6 Posters 10.1k 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.
    • S
      SpudsMcToole Banned
      last edited by SpudsMcToole

      Does anyone have a COOLCV_MAPPING.TXT file that works with a gamepad? (Preferably a Playstation one, but I'll take anything.) I can make no sense whatsoever of the file or any of the threads discussing it. I've tried various experimental additions but none have any results at all - the emulator just continues to flatly deny the pad's existence.

      If anybody's got one that works already I can very likely trial-and-error my way to success with my own pad, but so far I can't even manage Step 1.

      EDIT - below is a working layout for a PS3 Dual Shock pad

      ' CoolCV mappings for Colecovision controllers to
      keyboard and joystick
      up_1 key1073741906 joy0_4
      right_1 key1073741903 joy0_5
      down_1 key1073741905 joy0_6
      left_1 key1073741904 joy0_7
      left_button_1 key32 joy0_8
      right_button_1 key109 joy0_14
      button3_1 key1073741939
      button4_1 key1073741939
      key1_1 key49 joy0_15
      key2_1 key50 joy0_13
      key3_1 key51 joy0_12
      key4_1 key52 joy0_11
      key5_1 key53
      key6_1 key54 joy0_8
      key7_1 key55
      key8_1 key56
      key9_1 key57
      key*_1 key111 joy0_9
      key0_1 key48
      key#_1 key112 joy0_3
      up_2 key119
      right_2 key100
      down_2 key115
      left_2 key97
      left_button_2 key9 joy1_0
      right_button_2 key113 joy1_1
      button3_2 key1073741939
      button4_2 key1073741939
      key1_2 key114
      key2_2 key116
      key3_2 key121
      key4_2 key102
      key5_2 key103
      key6_2 key104
      key7_2 key118
      key8_2 key98
      key9_2 key110
      key*_2 key106
      key0_2 key107
      key#_2 key108 joy0_10
      key_save key1073741882
      key_restore key1073741883
      key_exit key1073741939 joy0_0
      key_pause key1073741884
      key_reset key8

      On this layout controls are:

      D-pad or analogue stick: movement
      X button: fire
      L2 button: fire
      Square button: keypad 1
      Triangle button: keypad 2
      Circle button: keypad 3
      R1: keypad 4
      L1: # button on 2nd controller (needed to add credit in Opcode games)
      Select: quit to Retropie
      Start: pause
      R2: reset Coleco

      herb_fargusH 1 Reply Last reply Reply Quote 0
      • herb_fargusH
        herb_fargus administrators @SpudsMcToole
        last edited by

        @SpudsMcToole every gamepad is different. If you can download the PC version of coolcv you should be able to press F7? I think and it should give you the codes for your buttons that coolcv wants

        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

        S edmaul69E 2 Replies Last reply Reply Quote 1
        • S
          SpudsMcToole Banned @herb_fargus
          last edited by

          @herb_fargus Thanks, that helped me figure it out*. I only have one problem now. My mapping file now looks like this for my wireless Playstation pad:

          ' CoolCV mappings for Colecovision controllers to keyboard and joystick
          up_1 key1073741906 joy0_4
          right_1 key1073741903 joy0_5
          down_1 key1073741905 joy0_6
          left_1 key1073741904 joy0_7
          left_button_1 key32 joy0_14
          right_button_1 key109 joy0_1
          button3_1 key1073741939
          button4_1 key1073741939
          key1_1 key49 joy0_15
          key2_1 key50 joy0_13
          key3_1 key51 joy0_12
          key4_1 key52 joy0_11
          key5_1 key108 joy0_10
          key6_1 key54 joy0_8
          key7_1 key55
          key8_1 key56
          key9_1 key57
          key*_1 key111
          key0_1 key48
          key#_1 key112

          That sets the d-pad to the movement controls, X to the fire button, the other three face buttons plus R1 to be 1, 2, 3 and 4 on the Coleco keypad (for games that require you to choose a difficulty), and R2 to be Exit, and all of that works sweetly.

          The reason for this line:

           key5_1	key108	joy0_10
          

          is that the Opcode games annoyingly use "L" on the keyboard to insert a credit, and according to the CoolCV keymapper that's key108. But setting a button on the joypad (L1 in this case) to mimic key108 does nothing.

          (I tried two different keyboards and L is key 108 on both of them.)

          Any ideas?

          *for anyone else with a wireless Dual Shock 3, the mappings turned out to be:

          joy0_0 is Select
          joy0_1 is L3
          joy0_2 is R3
          joy0_3 is Start
          joy0_4 is dpad up
          joy0_5 is dpad right
          joy0_6 is dpad down
          joy0_7 is dpad left
          joy0_8 is L2
          joy0_9 is R2
          joy0_10 is L1
          joy0_11 is R1
          joy0_12 is Triangle
          joy0_13 is Circle
          joy0_14 is X
          joy0_15 is Square

          S 1 Reply Last reply Reply Quote 1
          • S
            SpudsMcToole Banned @SpudsMcToole
            last edited by

            @SpudsMcToole (I already tried "key108 key108 joy0_10" and "key108 joy0_10")

            S 1 Reply Last reply Reply Quote 0
            • S
              SpudsMcToole Banned @SpudsMcToole
              last edited by

              @SpudsMcToole Never mind - by a long process of elimination, logic and a bit of blind luck I figured it wanted key#_2 :)

              1 Reply Last reply Reply Quote 0
              • retroBenR
                retroBen
                last edited by

                Hi folks, my first post here.

                Maybe I'm doing something wrong, but when I attempt to modify the coolcv_mapping.txt file to remap buttons for this emulator, after I make my changes and save the file, I launch a game and then exit out, the file reverts back to its original contents. I've even deleted the file and after launching a coleco game again, the original file comes back.

                So I'm clearly not editing the correct file or editing it on the correct manner.

                I'm accessing the coolcv_mapping.txt file over the network, path is \10.78.1.16\configs\coleco

                My goal is to get several 8bitdo BT controllers working in Colecovision, which seems to be working, however I can't exit out of the game with select+start, and the wireless RF keyboard I'm using does not have a right shift key.

                Sorry, I'm a little new to retropie, about 3-4 months now. If someone can point me in the right direction I would appreciate it.

                Thank you.

                Ben

                S 1 Reply Last reply Reply Quote 0
                • S
                  SpudsMcToole Banned @retroBen
                  last edited by

                  @retroBen The CoolCV mapping file won't let you map double-button presses. Set your quit to a single button, as in the example above.

                  mediamogulM 1 Reply Last reply Reply Quote 0
                  • mediamogulM
                    mediamogul Global Moderator @SpudsMcToole
                    last edited by

                    @SpudsMcToole said in Using a gamepad with CoolCV (Colecovision emulator):

                    The CoolCV mapping file won't let you map double-button presses.

                    Are you very sure about that? It was reported as being possible here.

                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SpudsMcToole Banned @mediamogul
                      last edited by

                      @mediamogul Is that the version you downloaded, though, rather than the standard one?

                      mediamogulM 2 Replies Last reply Reply Quote 0
                      • mediamogulM
                        mediamogul Global Moderator @SpudsMcToole
                        last edited by mediamogul

                        @SpudsMcToole

                        That's a good point and I'm not sure. I was assuming that the binary in RetroPie had most likely been updated since then, but maybe it hasn't.

                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                        1 Reply Last reply Reply Quote 0
                        • mediamogulM
                          mediamogul Global Moderator @SpudsMcToole
                          last edited by mediamogul

                          @SpudsMcToole

                          I just checked and the version in RetroPie is indeed up to date, so mapping two buttons to activate a function should work.

                          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                          1 Reply Last reply Reply Quote 0
                          • FultosF
                            Fultos
                            last edited by

                            I'm trying to figure out the mapping for my 8bitdo, can't find the appropriate variables so I can create the cfg file

                            anyone knows where I could get that?

                            mediamogulM 1 Reply Last reply Reply Quote 0
                            • mediamogulM
                              mediamogul Global Moderator @Fultos
                              last edited by

                              @Fultos

                              Have you tried running jstest?

                              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                              FultosF 2 Replies Last reply Reply Quote 0
                              • FultosF
                                Fultos @mediamogul
                                last edited by

                                @mediamogul said in Using a gamepad with CoolCV (Colecovision emulator):

                                jstest

                                no, I didn't know such thing existed I'll try to figure out how it works, thanks

                                thanks for the fast answer

                                edmaul69E 2 Replies Last reply Reply Quote 0
                                • FultosF
                                  Fultos @mediamogul
                                  last edited by

                                  @mediamogul

                                  Thanks a lot again,

                                  I'm now able to identify and map X,Y,B,A,Start,Select but somehow the D-Pad give me two axis :

                                  left :
                                  Event: type 2, time 7816110, number 6, value -32767
                                  Event: type 2, time 7816250, number 6, value 0
                                  right:
                                  Event: type 2, time 7817890, number 6, value 32767
                                  Event: type 2, time 7818000, number 6, value 0
                                  up:
                                  Event: type 2, time 7820250, number 7, value -32767
                                  Event: type 2, time 7820350, number 7, value 0
                                  down:
                                  Event: type 2, time 7820970, number 7, value 32767
                                  Event: type 2, time 7821090, number 7, value 0

                                  I'm wondering how I can fit this in as a value in the coolcv_mapping.txt since they are not fixed values.

                                  I've tried to add joy0_6 and joy0_7 as values but didn't work since it seems to miss somthing.

                                  1 Reply Last reply Reply Quote 0
                                  • edmaul69E
                                    edmaul69 @herb_fargus
                                    last edited by

                                    @herb_fargus f7 works on the pi as well.

                                    1 Reply Last reply Reply Quote 0
                                    • edmaul69E
                                      edmaul69 @Fultos
                                      last edited by edmaul69

                                      @Fultos here is my up down left right settings. it auto uses an axis, so the analog on a ps3 analog or any dpad/analog that has an axis should work without having to set a joy setting. here is how mine looks

                                      up_1	key1073741906
                                      right_1	key1073741903
                                      down_1	key1073741905
                                      left_1	key1073741904
                                      
                                      FultosF 1 Reply Last reply Reply Quote 2
                                      • FultosF
                                        Fultos @edmaul69
                                        last edited by

                                        @edmaul69 well it sure does work with the analog stick, but I'm looking to make my D-Pad work as a replacement of the original big clunky joystick of the Coleco.

                                        edmaul69E 1 Reply Last reply Reply Quote 0
                                        • edmaul69E
                                          edmaul69 @Fultos
                                          last edited by edmaul69

                                          Deleted

                                          1 Reply Last reply Reply Quote 0
                                          • edmaul69E
                                            edmaul69 @Fultos
                                            last edited by edmaul69

                                            @Fultos so the d-pad is hats on the 8bitdo here is the config from the 8-bitdo. not sure if you can use h0 up down left right's on the coleco. here is the config from the 8-bitdo

                                            input_up_btn = "h0up"
                                            input_down_btn = "h0down"
                                            input_left_btn = "h0left" 
                                            input_right_btn = "h0right" 
                                            

                                            i will try to test tomorrow

                                            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.