Hello, I've always used this script in Gemus for Joystick autoconfiguration and with Winvice 3.2 go without problems. Instead with SDLvice the joystick don't go in automatic mode. Curiously the Joystick is correctly present in SdLvice main menu/machine settings/native joystick port 2 but don't go...i have must reselect the Joystick to make it go (in the first time i change to none and in second time host Joystick). What's the problem?
If Control = JoyPort1
;------------------------------------
If Key_realjoystick1 CONTAINS(yes||1||on||true)
Add_CLP( -joydev2 4)
;------------------------------------
Else
Add_CLP( -joydev2 4)
End If
If NumPlayers > 1
;------------------------------------
If Key_realjoystick2 CONTAINS(yes||1||on||true)
Add_CLP( -joydev1 4)
;------------------------------------
Else
Add_CLP( -joydev1 2)
End If
Welcome to the Gamebase 64 forums. An attempt to document ALL Commodore 64 gameware before it's too late!
SDLvice and joystick configuration in GameBase64 v18
Moderator: Jimbo
- .mad.
- Honoured Member
- Location: Lancashire
Post
Re: SDLvice and joystick configuration in GameBase64 v18
SDL2 uses a custom map file for Joystick.
"sdl-joymap-C64SC.vjm"
*i think the default file only works with a PS3 pad not most other USB joysticks.
open machine settings
map your joystick for port 1
open settings management
save the joymap file
"port1.vjm"
open machine settings
map your joystick for port 2
open settings management
save the joymap file
"port2.vjm"
these are mine
for joypad c64 port1.
and same joypad for port #2
new script
If Control = JoyPort1
Add_CLP ( -joymap port1.vjm)
else
Add_CLP ( -joymap port2.vjm)
End If
"sdl-joymap-C64SC.vjm"
*i think the default file only works with a PS3 pad not most other USB joysticks.
open machine settings
map your joystick for port 1
open settings management
save the joymap file
"port1.vjm"
open machine settings
map your joystick for port 2
open settings management
save the joymap file
"port2.vjm"
these are mine
for joypad c64 port1.
Code: Select all
# 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/32/64/128/256/512/1024/2048 = u/d/l/r/fire(A)/fire2(B)/fire3(X)/Y/LB/RB/select/start)
# 2 row col keyboard
# 3 map
# 4 UI activate
# 5 path&to&item UI function
# 6 pot axis joystick (pot: 1/2/3/4 = x1/y1/x2/y2)
#
!CLEAR
# SideWinder Game Pad USB version 1.0
0 0 0 1 0 8
0 0 1 1 0 4
0 0 2 1 0 2
0 0 3 1 0 1
0 1 0 1 0 16
0 1 1 4980801
0 1 2 4522062
0 1 3 1
0 1 4 0
0 1 5 5046388
0 1 6 0
0 1 7 0
0 1 8 0
0 1 9 4784244
Code: Select all
# 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/32/64/128/256/512/1024/2048 = u/d/l/r/fire(A)/fire2(B)/fire3(X)/Y/LB/RB/select/start)
# 2 row col keyboard
# 3 map
# 4 UI activate
# 5 path&to&item UI function
# 6 pot axis joystick (pot: 1/2/3/4 = x1/y1/x2/y2)
#
!CLEAR
# SideWinder Game Pad USB version 1.0
0 0 0 1 1 8
0 0 1 1 1 4
0 0 2 1 1 2
0 0 3 1 1 1
0 1 0 1 1 16
0 1 1 4980801
0 1 2 4522062
0 1 3 0
0 1 4 0
0 1 5 5046388
0 1 6 4
0 1 7 3
0 1 8 0
0 1 9 4784244
new script
If Control = JoyPort1
Add_CLP ( -joymap port1.vjm)
else
Add_CLP ( -joymap port2.vjm)
End If
Who is online
Users browsing this forum: Bing [Bot] and 1 guest