-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Joystick:does not run properly on windows #868
Comments
maybe related to #860 |
sorry, don't see the obvious correlation |
Hi @gen2thomas , i read the issue you linked to, maybe I didn't understand it and didn't see any connection to the go-sdl2 module version. |
Hi @wushu037 , I have now fixed the old modules on dev branch. I started "go run scanner.go" like you have done, but without any joystick attached and in a Linux box - it do not exit immediately, it waits. Unfortunately I have no windows system to test it. What do you mean with "it works fine on Mac"? Do you have used the same example? I ask, because the example use a "dualshock3" type. Is this compatible with your "Xbox Wireless Controller (xsx2020)"? |
Hi, @gen2thomas , thank you for your investigation of the problem It is the example of the sample. to describe the problem briefly, I do not give my program.. Although the example uses "dualshock3", on Mac, my xsx2020 joystick still has multiple keys that can be listened to. But on Windows, only the trigger key is occasionally listened to To better solve the problem, I give my program file. It implements a very simple function: mapping the joystick's share keys to the system's share keys. In this program, the configuration file is set up by me running scanner.go on my Mac, and also only the trigger key is responded to. If you don't have Windows, you can install a virtual machine and the effect should be the same. Either on a win virtual machine or a win physical machine, I tried |
Hi @wushu037 , I need to stop my support here, because windows and no joystick available. Please could you change the headline to which is more pointing to the remaining problem, e.g. this words/phrases should be included "windows, scanner.go, only one key". So someone can pick up the issue with existing hardware and deeper knowledge. |
Hi @wushu037 , the sdl dependency is now replaced by another module. Maybe you can test again your device on Windows with the new implementation. Thanks Thomas |
Thanks a lot for providing the joystick library, it works fine on Mac, but there are exceptions on windows
environment
compilation warning
joystick relies on go-sdl2, and this warning occurs when it is compiled cross-platform from Mac to Windows and directly on Windows.
For this warning. I raised an issue with go-sdl2, and later I replaced it with 0.4.25 as suggested, and the warning disappeared. So maybe joystick should update the version of go-sdl2
running exception
I'm using Xbox Wireless Controller (xsx2020) and it only occasionally listens to the trigger button, but not to all other keys!
I also tried to run scanner.go, but it quits immediately
The text was updated successfully, but these errors were encountered: