ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > Configuring joystick macOS/Scummvm
Configuring joystick macOS/Scummvm
  Author    Thread Reply to topic
therealdeal



Joined: 30 Sep 2018
Posts: 4
Configuring joystick macOS/Scummvm 

How can I use the Speedlink Competition Pro USB Joystick with ScummVM?
MacOS 10.13.6, Scummvm 2.0.0
Path $HOME/Library/Preferences/ScummVM Preferences doesn't exist, can't find the scummvm.ini
Can anybody help?

 Reply with quote  
Post Mon Oct 01, 2018 8:19 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 934
 

I think you will need to use the Terminal for both of your issues.

To cover finding the ScummVM config file, it should be in that location i.e. in your home directory under that path.

See:
https://www.techradar.com/uk/how-to/computing/apple/terminal-101-using-the-find-command-1305633

Try opening a Terminal and using the command:
> find / -name "scummvm.ini"

That should tell you the path for a file of that name...

Apart from that, to use a Joystick, run ScummVM from the command line with the command:
> scummvm --joystick=0
as per https://github.com/scummvm/scummvm/blob/master/README#L1556

 Reply with quote  
Post Mon Oct 01, 2018 6:08 pm 
 View user's profile Send private message
therealdeal



Joined: 30 Sep 2018
Posts: 4
 

no scummvm.ini file found...
Aren't .ini files generally for windows?

 Reply with quote  
Post Mon Oct 01, 2018 9:44 pm 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 934
 

As the README indicates, this is the fallback name. Not quite sure from looking at the code what the OSX name will be.

Try:
> find / -name "*ScummVM*"

if that doesn't work, try:
> find / -name "*scummvm*"

 Reply with quote  
Post Mon Oct 01, 2018 10:01 pm 
 View user's profile Send private message
criezy
ScummVM Developer


Joined: 23 Sep 2006
Posts: 540
Location: West Sussex, UK
 

On macOS the file should be called "ScummVM Preferences" and not "scummvm.ini". And by default it should be in the location you indicated in your first post.

Which means that the following command in the Terminal should open it:

code:
open "$HOME/Library/Preferences/ScummVM Preferences"


If that file really does not exist, and in case it has been created somewhere else for some reasons, you could try looking for it using the command provided by digitall but with the correct file name:
code:
find / -name "ScummVM Preferences"



As for the running ScummVM in the terminal as suggested by digitall, on macOS the executable is inside the ScummVM.app bundle. To run it you will therefore need something similar to the command below (which assumes ScummVM.app is in the /Applications folder, you may need to adapt the path depending where it is on your computer):
code:
/Applications/ScummVM.app/Contents/MacOS/scummvm --joystick=0


You can also Drag&Drop the ScummVM.app on the Terminal to get the first part of the command above, but make sure to remove the space at the end before appending "/Contents/MacOS/scummvm".
 Reply with quote  
Post Mon Oct 01, 2018 10:02 pm 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 934
 

Thanks criezy! Always more productive when you have someone with the right Operating System! Smile

 Reply with quote  
Post Mon Oct 01, 2018 10:03 pm 
 View user's profile Send private message
therealdeal



Joined: 30 Sep 2018
Posts: 4
 

it works!!!
thanks criezy!!!

can I configure the scummvm preferences file for detecting the joystick automatically?

 Reply with quote  
Post Mon Oct 01, 2018 10:57 pm 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 934
 

https://github.com/scummvm/scummvm/blob/master/README#L2692

Just did a test and adding:
joystick_num=0

to the config file will enable joystick by default at startup.

 Reply with quote  
Post Mon Oct 01, 2018 11:09 pm 
 View user's profile Send private message
therealdeal



Joined: 30 Sep 2018
Posts: 4
 

thanks digitall, it works!!! Very Happy

 Reply with quote  
Post Mon Oct 01, 2018 11:35 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge