Homebrew [Release] Vice3DS (C64 Emulator)

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
What do you think of this keyboard? Based on the one of @spinal_cord but completed with the four cursor buttons and everything ...
keyboard3.png
 

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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.

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,

Muxi

Well-Known Member
Member
Joined
Jun 1, 2016
Messages
605
Trophies
0
Age
52
XP
2,117
Country
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,
  • Like
Reactions: Elwyndas

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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,
  • Like
Reactions: arquillos and Muxi

Muxi

Well-Known Member
Member
Joined
Jun 1, 2016
Messages
605
Trophies
0
Age
52
XP
2,117
Country
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!
 

spinal_cord

Knows his stuff
Member
Joined
Jul 21, 2007
Messages
3,225
Trophies
1
Age
43
Location
somewhere
Website
spinalcode.co.uk
XP
3,371
Country
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?
 

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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!
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,
  • Like
Reactions: Muxi

Muxi

Well-Known Member
Member
Joined
Jun 1, 2016
Messages
605
Trophies
0
Age
52
XP
2,117
Country
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,

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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...
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,

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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?

Video setting -> Render Filter should be set to "None"

--------------------- MERGED ---------------------------

What do you think about this as default?

A=fire
B=Space
Y=Return
X=Up/jump

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

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
What do you think about this as default?

A=fire
B=Space
Y=Return
X=Up/jump

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 :-(
 

Muxi

Well-Known Member
Member
Joined
Jun 1, 2016
Messages
605
Trophies
0
Age
52
XP
2,117
Country
Germany
If you would at least take your time to read the files, you would know by yourself
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,

Badda

me too
OP
Member
Joined
Feb 26, 2016
Messages
318
Trophies
0
Location
under the bridge
XP
2,400
Country
Tokelau
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

# b = SPACE
0 1 2 2 7 4
# x = Up
0 1 3 1 0 1
# y = Return
0 1 4 2 1 0
 
  • Like
Reactions: Muxi

Muxi

Well-Known Member
Member
Joined
Jun 1, 2016
Messages
605
Trophies
0
Age
52
XP
2,117
Country
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,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @BakerMan, I have a piano keyboard but I never use it