Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind /dev/input to have a controller in Wine #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rhjdvsgsgks
Copy link

Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhjdvsgsgks please adjust two details (see below) and also add to the readme in the table of things being shared:

| `/dev/input` | read-write bind mount with device access; needs `--raw-input` |

input_args.add_argument('--raw-input',
dest='raw_input',
action='store_true',
help='enable access to /dev/input , to have controller in wine (CAREFUL!) (default: raw-input disabled)')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about?:

--- help='enable access to /dev/input , to have controller in wine (CAREFUL!) (default: raw-input disabled)')
+++ help='enable access to /dev/input for a working game controller in Wine (CAREFUL!) (default: /dev/input not forwarded)')

@@ -275,6 +281,12 @@ def create_bwrap_argv(config):
env_tasks['PULSE_SERVER'] = f'unix:{pulseaudio_socket}'
mount_tasks += [MountTask(MountMode.BIND_RW, pulseaudio_socket)]

# input
if config.raw_input:
# default udev based hotplug not working in conatiner
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo "conatiner"

@hartwork hartwork changed the title bind /dev/input to have controller in wine Bind /dev/input to have a controller in Wine Apr 27, 2024
@hartwork hartwork added the enhancement New feature or request label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants