how can I disable joy-stick in Wine by “Ubuntu terminal” or

Questions about Wine on Linux
Locked
javad1378
Newbie
Newbie
Posts: 3
Joined: Fri Aug 09, 2019 12:42 pm

how can I disable joy-stick in Wine by “Ubuntu terminal” or

Post by javad1378 »

I connected 3 Joy-sticks to my laptop but now I want to disable only one of them from a specific virtual drive in Wine only by my "Ubuntu terminal" or "cmd windows" (not by the Wine control panel) Is there any way to do this by a command ???
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: how can I disable joy-stick in Wine by “Ubuntu terminal”

Post by jkfloris »

You could use regedit to disable the joystick.
The first two steps uses a GUI, but you only need the terminal to disable the joystick.

Use the control panel to disable the joystick

Code: Select all

wine control joy.cpl
Use regedit to find and export the registry keys

Code: Select all

wine regedit

# Find and export  [HKEY_CURRENT_USER\Software\Wine\DirectInput\Joysticks]
Use regedit to import the registry key if necessary

Code: Select all

wine regedit disable_joystick.reg
Locked