[Release] Vice3DS (C64 Emulator)

Discussion in '3DS - Homebrew Development and Emulators' started by Badda, Mar 31, 2019.

  1. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    What do you think of this keyboard? Based on the one of @spinal_cord but completed with the four cursor buttons and everything ... keyboard3.
     
    Muxi and Vulpes-Vulpeos like this.
  2. spinal_cord

    spinal_cord Knows his stuff

    Member
    8
    Jul 21, 2007
    somewhere
    The only points I would suggest, 1. A black border around the keys so that the keys don't blend into the background as much. 2. Have the colour keys match the emulator palette.
     
  3. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    First suggestion is ok, the second one is difficult to achieve because the VICE palette is customizeable, meaning I would have to dynamically color the keys depending on the currently set palette. This is of course possible - but will have to be done by someone else :D
    I'm open for pull requests on this (if anybody is interested: the function to be adapted would be sdl_uibottom_draw() in arch/sdl/uibottom.c )
     
    Last edited by Badda, Apr 14, 2019
  4. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    Is there a possibility to quickly save or load states (eg via the L and R buttons), as well as the possibility to change the joystick ports (maybe via a "swap" button on the touch screen)?
     
    Last edited by Muxi, Apr 14, 2019
    Elwyndas likes this.
  5. Nilss

    Nilss Newbie

    Newcomer
    1
    Apr 14, 2019
    United States
    Tbh this is hella cool! i await for more progress on this thing!
     
  6. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    New version available: v1.0 Morning Glory :yay3ds:

    If you're updating from a previous version, make sure to delete /3ds/vice3ds/config/sdl_sym.vkm before starting the emulator. Otherwise new key mappings will not be updated and the new keyboard will not work correctly.

    Changes to last version:
    • Autofire support (configurable in VICE menu under "Machine settings" -> "Joystick settings")
    • New keyboard layout (again ...)
    • Bugfixes
    Have fun!
     
    Last edited by Badda, Apr 15, 2019
    arquillos and Muxi like this.
  7. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    How can I assign the buttons A, B, Y and X, if I want to have the space bar on the B button, for example? Is there a manual for this? Thanks!
     
  8. spinal_cord

    spinal_cord Knows his stuff

    Member
    8
    Jul 21, 2007
    somewhere
    The screen is slightly blurry, I'm sure I saw a menu option to fix that in a previous version. Could it possible be made default to be pixel-perfect? Looking at how light the blur is, it seems that the rendering might be only 1 or 2 pixels out?
     
  9. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    You can define this in the config files (/3ds/vice3ds/config/sdl_sym.vkm, /3ds/vice3ds/config/sdl-joymap-C64.vjm or 3ds/vice3ds/config/sdl-hotkey-C64.vkm). Meaning and syntax of these files is described inside the files and here: http://vice-emu.sourceforge.net/vice_4.html#SEC25
    Which file you use, is your choice. The 3ds buttons are all per default mapped to a keyboard key, some additionally to a joystick button. What actually happens when one of these keypress or buttondown/axismove events arrive in the emulator, is defined in the above files. The mappings are as follows:
    Code:
    Button         Key Joybutton
    ----------------------------
    A              200    1
    B              201    2
    X              202    3
    Y              203    4
    L              204    5
    R              205    6
    ZL             206
    ZR             207
    START          208
    SELECT         209    7
    DPAD UP        210
    DPAD DOWN      211
    DPAD LEFT      212
    DPAD RIGHT     213
    CSTICK UP      214
    CSTICK DOWN    215
    CSTICK LEFT    216
    CSTICK RIGHT   217
    CPAD UP        218  axis 3
    CPAD DOWN      219  axis 2
    CPAD LEFT      220  axis 1
    CPAD RIGHT     221  axis 0
    
    So, if you want to map the A-button to SPACE, you could do one of the following:
    Add a line in sdl_sym.vkm:
    Code:
    200 7 4 0
    
    OR modify the line in sdl-joymap-C64.vjm that currently maps the A-button to the fire-button of the vice default joystick. The new line would be:
    Code:
    0 1 1 2 7 4
    (but then your A-button will not work as fire-button for the vice default joystick anymore)

    Hope that helps.
     
    Last edited by Badda, Apr 15, 2019
    Muxi likes this.
  10. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    Thanks! I will give it a try. I know this so far from C64 emulation on other consoles so that the B and Y button are assigned to Space and Return, as they are needed very often. I remember that Breadbox or pspvice was like that.

    Edit:
    I do not look through:wacko: ..... could you please explain to me which values I have to enter / change in the sdl_sym.vkm, so that B = Space and Y = Return? Many Thanks!
     
    Last edited by Muxi, Apr 15, 2019
  11. spinal_cord

    spinal_cord Knows his stuff

    Member
    8
    Jul 21, 2007
    somewhere
    Does that mean it's possible to have a/b/x/y buttons as UP? A lot of C64 games are a bit difficult using up as jump, it would be nice to have say, A = fire, B or X as UP (and keep Up as Up also...
     
  12. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    jup, possible - at least in connection with the C-Pad.
    In connection with the D-Pad, you would need to choose: Either the button or the direction for up (this, you can configure in vice menu - you don't even have to touch the files) Just adapt Keyset 1
     
    Last edited by Badda, Apr 15, 2019
  13. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    What do you think about this as default?

    A=fire
    B=Space
    Y=Return
    X=Up/jump
     
  14. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    Video setting -> Render Filter should be set to "None"

    — Posts automatically merged - Please don't double post! —

    Sure, if this works for you, you can customize your vice3ds like that.
     
  15. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    I would like, but I do not look through unfortunately ......
     
  16. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    A=fire is already set for the default joystick or can be set in the joystick keysets.
    B=Space and Y=Return
    201 7 4 0
    203 0 1 0

    X=Up/Jump can be configured in keyset. To set this for the default joystick:
    0 1 3 1 0 1

    If you would at least take your time to read the files, you would know by yourself :-(
     
  17. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    I did that already, but I do not know where to add the entries there (sdl_sym.vkm). Or can they just be added at the end of the code? I have no idea about these things - I'm not a programmer ........

    Here is the code from sdl-joymap-C64.vjm - I don´t know what to enter in the marked lines:

    # not used
    0 1 0 0
    # a (is joystick 1 button)
    0 1 1 1 0 16
    # b
    0 1 2 0 ?????
    # x
    0 1 3 0 ?????
    # y
    0 1 4 0 ?????
    # l
    0 1 5 0
    # r
    0 1 6 0
    # select (opens menu)
    0 1 7 4
     
    Last edited by Muxi, Apr 15, 2019
  18. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    # b = SPACE
    0 1 2 2 7 4
    # x = Up
    0 1 3 1 0 1
    # y = Return
    0 1 4 2 1 0
     
    Muxi likes this.
  19. Muxi

    Muxi GBAtemp Fan

    Member
    5
    Jun 1, 2016
    Germany
    Thank you very much!

    Edit:
    B Button for Space is working now with these settings! Great! But Y for Return doesn´t...

    @spinal_cord Which game needs the Jump Button? I'd like to test if the assigned X button works.
     
    Last edited by Muxi, Apr 15, 2019
  20. Badda
    OP

    Badda GBAtemp Regular

    Member
    4
    Feb 26, 2016
    Tokelau
    Nirvana
    # y = Return
    0 1 4 2 0 1
     
    Muxi likes this.
Quick Reply
Draft saved Draft deleted
Loading...