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

Questions about Wine on Linux
Post Reply
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 » Sat Aug 10, 2019 9:47 am

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 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

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

Post by jkfloris » Sun Aug 11, 2019 4:01 am

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

Post Reply