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

    Colecovision Key Bindings

    Scheduled Pinned Locked Moved Help and Support
    8bitdocolecovision
    36 Posts 13 Posters 22.3k 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.
    • RionR
      Rion @theroamer
      last edited by Rion

      @theroamer said in Colecovision Key Bindings:

      So close yet so far. I can't for the life of me figure out what code to use to bind the dpad on my 8bitdo. The analog stick works for moving but it doesn't work well in games, if you don't move it exactly up, down, left, right there are dead spots.

      Hoping the author of CoolCV gets the F7 keybinding fixed for the pi.

      If anyone else has any ideas on how to get the correct codes to manually enter the mappings, please let me know.

      Found the official release thread for CoolCV
      Some progress there on SDL mapping here.

      Edit: I wonder if there is an JoyToKey program for the PI?

      FBNeo rom filtering
      Mame2003 Arcade Bezels
      Fba Arcade Bezels
      Fba NeoGeo Bezels

      theroamerT mediamogulM 2 Replies Last reply Reply Quote 0
      • theroamerT
        theroamer @Rion
        last edited by

        @Rion Thanks, yeah those mapping are great for reconfiguring a keyboard. When it comes to the gamepad though, I'm at a loss for what to use for the codes, as there is no utility to tell you what codes your gamepad is spitting out.

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

          @Rion said in Colecovision Key Bindings:

          I wonder if there is an JoyToKey program for the PI?

          A lot of people are surprised to learn that xboxdrv can be used for this purpose with any USB controller. It's also somewhat convenient due to it being found in RetroPie right out of the box.

          Taken from: http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html

          It is also possible for xboxdrv to read input data directly from an event device, this allows the use of the configurability of xboxdrv on regular PC joysticks, keyboards and mice and thus lets xboxdrv serve a similar purpose as joy2key. See the option --evdev below for more information.

          Also, here's a link to a tutorial on using xboxdrv with any USB controller:
          https://steamcommunity.com/app/221410/discussions/0/558748653738497361/

          I love Colecovision games and I have been looking into this same thing, off and on, for over a week now. Whenever I get some solid time to troubleshoot any problems that might come up, I plan on mapping my Wavebird using this method.

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

          RionR 1 Reply Last reply Reply Quote 0
          • RionR
            Rion @mediamogul
            last edited by

            @mediamogul said in Colecovision Key Bindings:

            @Rion said in Colecovision Key Bindings:

            I wonder if there is an JoyToKey program for the PI?

            A lot of people are surprised to learn that xboxdrv can be used for this purpose with any USB controller. It's also somewhat convenient due to it being found in RetroPie right out of the box.

            Taken from: http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html

            It is also possible for xboxdrv to read input data directly from an event device, this allows the use of the configurability of xboxdrv on regular PC joysticks, keyboards and mice and thus lets xboxdrv serve a similar purpose as joy2key. See the option --evdev below for more information.

            Also, here's a link to a tutorial on using xboxdrv with any USB controller:
            https://steamcommunity.com/app/221410/discussions/0/558748653738497361/

            I love Colecovision games and I have been looking into this same thing, off and on, for over a week now. Whenever I get some solid time to troubleshoot any problems that might come up, I plan on mapping my Wavebird using this method.

            Will it work with an BT controller for example 8bitdo?

            FBNeo rom filtering
            Mame2003 Arcade Bezels
            Fba Arcade Bezels
            Fba NeoGeo Bezels

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

              It should have no problem. After I get it all worked out myself, I plan on posting a full tutorial here that will cover these types of advanced controller setups.

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

              RionR 1 Reply Last reply Reply Quote 1
              • RionR
                Rion @mediamogul
                last edited by

                @mediamogul said in Colecovision Key Bindings:

                It should have no problem. After I get it all worked out myself, I plan on posting a full tutorial here that will cover these types of advanced controller setups.

                How's the guide coming along?
                Plan on posting it here and on the wiki?

                FBNeo rom filtering
                Mame2003 Arcade Bezels
                Fba Arcade Bezels
                Fba NeoGeo Bezels

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

                  @Rion

                  It really all depends on what I find once I fully kick the tires and light the fires. I expect it to come with some frustration in the experimentation process as there is very little documentation to rely on in using it as a universal driver. However, I've checked off everything I personally want to get done with my RetroPie install for now other than this, so I will start messing with it soon.

                  Once in a while, I do like to sit back and enjoy the fruits of labor, so tonight I plan to play a bit of "Cave Story" and "Retro City Rampage 486" as well as looking at the recent input layer in Kodi. All I have is time for the next few days as I am layed up with the lovely combination of sunburn and poison oak, so I'll probably use xboxdrv to divert my mind off of it over the weekend.

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

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

                    I wanted to post a quick update. With all that I want to accomplish with a guide to advance controller setup, it has become clear that it will involve a few different pieces of software that, while readily available, will require a bit of research and experimentation before I will feel confident in speaking authoritatively about them. However, it is highest on my list of things to do with my RetroPie install, so I don't imagine it will be too far off.

                    Having said that, here is a listing of the top controller-related issues I hope to alleviate in the guide:

                    • Using multiple controllers of the same make and model
                    • Using different controllers that share a GUID name
                    • Adding keymap controller support
                    • Mapping analog triggers as buttons
                    • Mapping events to jsX slots
                    • Mapping isolated event groupings to multiple jsX slots

                    In the mean time, here is a previous thread I dug up that should ultimately act as a full keymap solution for emulators like CoolCV for those who might want to jump ahead. The guide is for KODI, but the information can be extrapolated to just about anything. I believe it will be a much more elegant approach than using xboxdrv, as it is specifically tailored for this kind of activity. Also, the mapper is only called when the emulator is launched and killed as it exits.

                    http://blog.petrockblock.com/forums/topic/mapping-a-game-controller-in-kodi/

                    My next comment on this will probably require it's own thread, but I'll keep an eye on this one as well.

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

                    1 Reply Last reply Reply Quote 0
                    • RionR
                      Rion
                      last edited by

                      @mediamogul

                      Very interesting research you have done. I'm going to push the follow button on you right now so I don't miss out on anything!

                      Great Work!

                      FBNeo rom filtering
                      Mame2003 Arcade Bezels
                      Fba Arcade Bezels
                      Fba NeoGeo Bezels

                      1 Reply Last reply Reply Quote 0
                      • theroamerT
                        theroamer
                        last edited by

                        Just an update.

                        I went ahead and went back to firmware 1.69 on the nes30 pro, When I pair it in joystick mode (r1+power) both the analog sticks and dpad work in Colecovision!

                        now if I could just get them both working in retroarch (just the dpad works now).

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

                          I've been making some progress myself. One of the things holding me back is a way to launch the mapping software when the need arises that can be recommended without question. I figure 'Linux Joystick Mapper' can be added to a game system's launch routine from the launch script. However, xboxdrv needs a little more consideration. There's a bug preventing it from being launched as a universal driver in the default way that RetroPie uses it as an XBox driver. I'm exploring the possibility of having it launch via a script when the controller is first detected, using a udev rule. The toughest part is trying to find time to do all the necessary experimentation that is required.

                          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 @theroamer
                            last edited by mediamogul

                            @theroamer said in Colecovision Key Bindings:

                            @Rion Thanks, yeah those mapping are great for reconfiguring a keyboard. When it comes to the gamepad though, I'm at a loss for what to use for the codes, as there is no utility to tell you what codes your gamepad is spitting out.

                            This comment was made about two months ago, to which I responded with the possible solution of mapping keyboard input to a controller. With as much time as I could spare here and there, I ultimately learned how to universally do that throughout the whole system. Today, I was going to post a guide that allowed a full mapping that would launch and exit alongside CoolCV.

                            As it turns out, none of that is even necessary. Beside each SDL keyboard code found in /opt/retropie/configs/coleco/coolcv_mapping.txt you are able to input a SDL joystick code directly. I saw this early on and it is mentioned above, but quite frankly didn't know enough about the formatting at the time to understand it. When I looked at it again today, it immediately made sense. There are two examples used for the main action buttons. the first example is joy0_0which is referring to joystick 0, button 0, or what would commonly be thought of as the first button on the first joystick. joy0_1 would then of course be referencing the second button on the first joystick.

                            All that is really needed to map any controller occupying a /dev/input/js* from here is to know your controller's js* number and then run jstestto get the proper button number codes for that controller. From there you would just add the properly formatted codes, such as joy0_0 mentioned above, to where you want them in /opt/retropie/configs/coleco/coolcv_mapping.txt and it should be good to go. I've tested it myself and it works very well.

                            I don't feel like my research was wasted though. I've learned to map a controller in some really amazing ways as a result of this. For example, I have an optional mapping that is solely for the purpose of restricting directional input to four directions from an analog stick or directional pad. This makes all the difference in the world when trying to do well at a game like 'Pac-Man' or 'Ms Pac-man'. Some of you might have noticed that those characters can become unresponsive for a microsecond around corners when the analog stick hits a diagonal. Having a restricted directional mapping solves that and allows those and similar games to play as they did in arcades.

                            I'll fold over what I was going to post here for more of an all-encompassing guide on mapping that I want to post in a day or two, but for now, I hope this helps and I'm sorry it took so long to make good on my word to post something for this.

                            Edit: If I need to elaborate on using jstest, I'll be happy to do so.

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

                            RionR RiverstormR 2 Replies Last reply Reply Quote 0
                            • RionR
                              Rion @mediamogul
                              last edited by

                              @mediamogul said in Colecovision Key Bindings:

                              @theroamer said in Colecovision Key Bindings:

                              @Rion Thanks, yeah those mapping are great for reconfiguring a keyboard. When it comes to the gamepad though, I'm at a loss for what to use for the codes, as there is no utility to tell you what codes your gamepad is spitting out.
                              

                              This comment was made about two months ago, to which I responded with the possible solution of mapping keyboard input to a controller. With as much time as I could spare here and there, I ultimately learned how to universally do that throughout the whole system. Today, I was going to post a guide that allowed a full mapping that would launch and exit alongside CoolCV.

                              As it turns out, none of that is even necessary. Beside each SDL keyboard code found in /opt/retropie/configs/coleco/coolcv_mapping.txt you are able to input a SDL joystick code directly. I saw this early on and it is mentioned above, but quite frankly didn't know enough about the formatting at the time to understand it. When I looked at it again today, it immediately made sense. There are two examples used for the main action buttons. the first example is joy0_0which is referring to joystick 0, button 0, or what would commonly be thought of as the first button on the first joystick. joy0_1 would then of course be referencing the second button on the first joystick.

                              All that is really needed to map any controller occupying a /dev/input/js* from here is to know your controller's js* number and then run jstestto get the proper button number codes for that controller. From there you would just add the properly formatted codes, such as joy0_0 mentioned above, to where you want them in /opt/retropie/configs/coleco/coolcv_mapping.txt and it should be good to go. I've tested it myself and it works very well.

                              I don't feel like my research was wasted though. I've learned to map a controller in some really amazing ways as a result of this. For example, I have an optional mapping that is solely for the purpose of restricting directional input to four directions from an analog stick or directional pad. This makes all the difference in the world when trying to do well at a game like 'Pac-Man' or 'Ms Pac-man'. Some of you might have noticed that those characters can become unresponsive for a microsecond around corners when the analog stick hits a diagonal. Having a restricted directional mapping solves that and allows those and similar games to play as they did in arcades.

                              I'll fold over what I was going to post here for more of an all-encompassing guide on mapping that I want to post in a day or two, but for now, I hope this helps and I'm sorry it took so long to make good on my word to post something for this.

                              Edit: If I need to elaborate on using jstest, I'll be happy to do so.

                              Thank you for taking you're free time to figure all this out. Looking forward to your guide. This is going to help out a lot of people!

                              FBNeo rom filtering
                              Mame2003 Arcade Bezels
                              Fba Arcade Bezels
                              Fba NeoGeo Bezels

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

                                post deleted

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

                                  @edmaul69

                                  I've looked closely and all CoolCV mappings are single key. However, it is possible to add an outside mapping that will send whatever key is mapped to exit by pressing two buttons. Using xboxdrv, a working example would look like:

                                  --ui-buttonmap start+back=KEY_F24
                                  

                                  Seeing as how 'back' is usually analogous with 'select' in these situations, this mapping would allow CoolCV to exit using the same button combination that all the RetroArch cores use.

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

                                  edmaul69E synackS 2 Replies Last reply Reply Quote 1
                                  • RiverstormR
                                    Riverstorm @mediamogul
                                    last edited by

                                    @mediamogul said in Colecovision Key Bindings:

                                    I have an optional mapping that is solely for the purpose of restricting directional input to four directions from an analog stick or directional pad. This makes all the difference in the world when trying to do well at a game like 'Pac-Man' or 'Ms Pac-man'. Some of you might have noticed that those characters can become unresponsive for a microsecond around corners when the analog stick hits a diagonal. Having a restricted directional mapping solves that and allows those and similar games to play as they did in arcades.

                                    This would be a greatly welcome addition! Looking forward to your post.

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

                                      @mediamogul the ultimate pc interface or the vision-daptor has secret button combos to accomplish this if you use them to use real colecovision and intellivision controllers. I have an ultimate pc interface in my intellivision flashback that is modded with a pi in it.
                                      Pressing 4 + * = button 3 (used for pause)
                                      Pressing 5 + 0 = button 4 (used for reset)
                                      Pressing 6 + # = button 5 (used for exit emulator)

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

                                        @edmaul69 said in Colecovision Key Bindings:

                                        the ultimate pc interface or the vision-daptor

                                        I might get one of these, as I am really enjoying the Colecovision library and wouldn't mind enhancing the experience further. As it stands now, I have the entire keypad mapped to the right thumbstick. Up, down, left & right are 1-4. Start+ Up, down, left & right are 5-8, leaving Select+ Up, down, left & right as 9,0,* and #. It took some getting used to, but this mapping works well for most games, with the two action buttons also mapped to 'A' and 'B'. There are some games however that need their own specific mapping to be played well. Intellivision seemed to make wilder use out of their keypad, so a universal mapping is more hit or miss, leaving many more titles in need of a more tailored mapping.

                                        Also, I appreciate the interest that has been shown in the last few comments about my guide to mapping. It can now be found here.

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

                                        1 Reply Last reply Reply Quote 0
                                        • synackS
                                          synack @mediamogul
                                          last edited by

                                          Apologies for bumping an old thread, but just thought I would mention that in the most recent version of CoolCV (which is not currently in the retropie repository, but can be found here), you are able to require multiple keys (or joystick buttons) to exit the emulator.

                                          For example, by editing the coolcv_mapping.txt file, and adding 2 different joystick buttons to the same line, it will wait for both to be pressed and act similarly to the rest of the libretro emulators.

                                          key_exit   key1073741939   joy0_6   joy0_7
                                          
                                          mediamogulM 1 Reply Last reply Reply Quote 1
                                          • mediamogulM
                                            mediamogul Global Moderator @synack
                                            last edited by

                                            @synack said in Colecovision Key Bindings:

                                            it will wait for both to be pressed

                                            Very keen! Thanks for pointing this out. I love CoolCV and the developer really produces great 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
                                            • 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.