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

    C64 mapping buttons to custom keys?

    Scheduled Pinned Locked Moved Help and Support
    c64
    9 Posts 4 Posters 5.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.
    • G
      g0nz0uk
      last edited by g0nz0uk

      Hello,

      I'm using the C64 on my bartop and a while back I configured the 6 buttons to do various commands such as

      swap joystick ports
      warp load
      save and load state
      fire
      space

      But I can't remember how to bind a another button to bring up Vice's menu, here is my config, any ideas? Can't seem to find a tutorial.

      # VICE joystick mapping file
      #
      # A joystick map is read in as patch to the current map.
      #
      # File format:
      # - comment lines start with '#'
      # - keyword lines start with '!keyword'
      # - normal line has 'joynum inputtype inputindex action'
      #
      # Keywords and their lines are:
      # '!CLEAR'    clear all mappings
      #
      # inputtype:
      # 0      axis
      # 1      button
      # 2      hat
      # 3      ball
      #
      # Note that each axis has 2 inputindex entries and each hat has 4.
      #
      # action [action_parameters]:
      # 0               none
      # 1 port pin      joystick (pin: 1/2/4/8/16 = u/d/l/r/fire)
      # 2 row col       keyboard
      # 3               map
      # 4               UI activate
      # 5 path&to&item  UI function
      #
      
      !CLEAR
      
      # DragonRise Inc.   Generic   USB  Joystick  
      0 0 0 1 1 8
      0 0 1 1 1 4
      0 0 2 1 0 2
      0 0 3 1 0 1
      0 0 4 0
      0 0 5 0
      0 0 6 1 1 2
      0 0 7 1 1 1
      0 0 8 0
      0 0 9 0
      
      0 1 0 1 1 16
      0 1 1 2 7 4
      0 1 2 5 Snapshot&Quicksave snapshot.vsf
      0 1 3 5 Speed settings&Warp mode
      0 1 4 5 Machine settings&Joystick settings&Swap joystick ports
      0 1 5 5 Snapshot&Quickload snapshot.vsf
      0 1 6 2 7 7
      0 1 7 4
      0 1 8 5 Quit emulator
      0 1 9 0
      0 1 10 0
      0 1 11 0
      
      0 2 0 0
      0 2 1 0
      0 2 2 0
      0 2 3 0
      
      
      
      
      # DragonRise Inc.   Generic   USB  Joystick  
      1 0 0 1 0 8
      1 0 1 1 0 4
      1 0 2 1 0 2
      1 0 3 1 0 1
      1 0 4 0
      1 0 5 0
      1 0 6 0
      1 0 7 0
      1 0 8 0
      1 0 9 0
      
      1 1 0 1 0 16
      1 1 1 2 7 4
      1 1 2 5 Snapshot&Quicksave snapshot.vsf
      1 1 3 5 Speed settings&Warp mode
      1 1 4 5 Machine settings&Joystick settings&Swap joystick ports
      1 1 5 5 Snapshot&Quickload snapshot.vsf
      1 1 6 2 7 7
      1 1 7 4
      1 1 8 5 Quit emulator
      1 1 9 0
      1 1 10 0
      1 1 11 0
      
      1 2 0 0
      1 2 1 0
      1 2 2 0
      1 2 3 1 1 8
      
      
      
      
      # Xbox Gamepad (userspace driver)
      2 0 0 0
      2 0 1 0
      2 0 2 0
      2 0 3 0
      2 0 4 0
      2 0 5 0
      2 0 6 0
      2 0 7 0
      
      2 1 0 0
      2 1 1 0
      2 1 2 0
      2 1 3 0
      2 1 4 0
      2 1 5 0
      2 1 6 0
      2 1 7 0
      2 1 8 0
      2 1 9 0
      2 1 10 0
      2 1 11 0
      2 1 12 0
      
      2 2 0 0
      2 2 1 0
      2 2 2 0
      2 2 3 0
      
      
      
      
      # Xbox Gamepad (userspace driver) #2
      3 0 0 1 1 8
      3 0 1 1 1 4
      3 0 2 1 1 2
      3 0 3 1 1 1
      3 0 4 1 0 8
      3 0 5 1 0 4
      3 0 6 1 0 2
      3 0 7 1 0 1
      
      3 1 0 1 1 16
      3 1 1 4
      3 1 2 3
      3 1 3 1 0 16
      3 1 4 1 1 16
      3 1 5 4
      3 1 6 3
      3 1 7 1 0 16
      3 1 8 1 1 16
      3 1 9 4
      3 1 10 3
      3 1 11 1 0 16
      3 1 12 1 1 16
      
      3 2 0 1 1 1
      3 2 1 1 1 2
      3 2 2 1 1 4
      3 2 3 1 1 8
      1 Reply Last reply Reply Quote 0
      • P
        Pyjamarama
        last edited by Pyjamarama

        How did u configure them?

        G 1 Reply Last reply Reply Quote 0
        • G
          g0nz0uk @Pyjamarama
          last edited by

          @Pyjamarama will a chap on here helped me a long time ago, wish I knew.

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

            @g0nz0uk if you open up the menu while in a game (tab button?) then go into:
            Machine settings ->
            Joystick settings ->
            Joystick extra options ->
            Menu activate
            Now hit the button you want to use to bring up the menu

            Then use the button you assigned to menu activate to back out of the menu's back to the first menu page. Then select:
            Settings management ->
            Save joystick map

            I have on that same page:
            Save settings on exit *
            But i dont think you need it for this but i could be wrong.

            G P 2 Replies Last reply Reply Quote 0
            • G
              g0nz0uk @edmaul69
              last edited by

              @edmaul69 I will try this when I get home thanks. Do you know how to bind a button to space bar? Or bring up a virtual Keyboard?

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

                @g0nz0uk i will look into it. I am not sure.

                G 1 Reply Last reply Reply Quote 0
                • G
                  g0nz0uk @edmaul69
                  last edited by

                  @edmaul69 many thanks, hope there is a way.

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pyjamarama @edmaul69
                    last edited by

                    @edmaul69 I have found that. I cannot find a way to map other emulator actions like eg Warp to my 360 pad buttons e.g right trigger

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

                      @g0nz0uk said in C64 mapping buttons to custom keys?:

                      Do you know how to bind a button to space bar? Or bring up a virtual Keyboard?

                      @Pyjamarama said in C64 mapping buttons to custom keys?:

                      I cannot find a way to map other emulator actions like eg Warp to my 360 pad buttons e.g right trigger

                      I've put together a guide here that deals with mapping keyboard keys to the controller using software already available in RetroPie. I personally run a map for C64 that binds most elements of the interface to my controller. Warp and the virtual keyboard cannot be bound to a certain key, but the virtual keyboard can be accessed from the menu and the menu can be mapped, making it at least accessible from the controller. Also, warp can be set to start at launch and will usually detect when the game has loaded and stop itself, but in the rare occasion it fails, you can just pull up the menu with your controller and stop it manually.

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

                      1 Reply Last reply Reply Quote 2
                      • 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.