Configuring joystick macOS/Scummvm

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
therealdeal
Posts: 4
Joined: Sun Sep 30, 2018 2:38 pm

Configuring joystick macOS/Scummvm

Post by therealdeal »

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?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

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/com ... nd-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 ... ADME#L1556
therealdeal
Posts: 4
Joined: Sun Sep 30, 2018 2:38 pm

Post by therealdeal »

no scummvm.ini file found...
Aren't .ini files generally for windows?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

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*"
User avatar
criezy
ScummVM Developer
Posts: 949
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Post by criezy »

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: Select all

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: Select all

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: Select all

/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".
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

Thanks criezy! Always more productive when you have someone with the right Operating System! :)
therealdeal
Posts: 4
Joined: Sun Sep 30, 2018 2:38 pm

Post by therealdeal »

it works!!!
thanks criezy!!!

can I configure the scummvm preferences file for detecting the joystick automatically?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

https://github.com/scummvm/scummvm/blob ... ADME#L2692

Just did a test and adding:
joystick_num=0

to the config file will enable joystick by default at startup.
therealdeal
Posts: 4
Joined: Sun Sep 30, 2018 2:38 pm

Post by therealdeal »

thanks digitall, it works!!! :D
Post Reply