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

Is it possible to add support for exclusive controller access? #1

Open
Matthijs990 opened this issue Jan 12, 2023 · 5 comments
Open

Comments

@Matthijs990
Copy link

Matthijs990 commented Jan 12, 2023

Is it possible to get exclusive access to add a feature that gives python exclusive access to a controller?
What I mean is that, for example DS4Windows can get exclusive access to a controller, so no other program can use said controller. Is it possible to add something similair to this library?

@4amVim
Copy link
Owner

4amVim commented Jan 12, 2023

Hmm, it should be possible I believe. I'll check that and get back to you.

Although I must ask out of curiosity, why do you want such support ?

@Matthijs990
Copy link
Author

It’s for a project that I am working on that requires the program to have exclusive access to said controller, because else the game where it is for will splitscreen
It’s a sort of challenge

@4amVim
Copy link
Owner

4amVim commented Jan 12, 2023

Oh, that seems like an interesting challenge. I'd be up for it.

You could really help me out by

  1. providing sample code that demonstrates your use-case
  2. mentioning how this library currently behaves with respect to that sample code
  3. telling me how you think this library should behave with that sample code.

Rest assured, I'll do some research into how I can cater to your use-case, and if at all.

I'm currently closing this issue, please feel free to open it again if you get hold of any of the above resources. Else I'll reopen it once I have a PR to link with it.

P.S. Thank You for taking interest in this library, it made my day :)

@4amVim 4amVim closed this as completed Jan 12, 2023
@Matthijs990
Copy link
Author

My code I have so far is what I got from the wiki:

>>> from gamepyd import *
>>> foo=rPad() #Supported ports are 1,2,3,4
Now reading gamepad#1

And how the library behaves now in respect from this test code is that while using this function, other programs can still see the controllers input

how I would like the library to behave with this code is that there is a parameter called exclusive_mode for example that can be set to true to make it so only Python can see the controller

@4amVim
Copy link
Owner

4amVim commented Jan 16, 2023

Hey, thank you for the clarification. I'll certainly look into it.

@4amVim 4amVim reopened this Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants