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

Testing joystick with "user_input" example #310

Open
bvssvni opened this issue Oct 2, 2015 · 8 comments
Open

Testing joystick with "user_input" example #310

bvssvni opened this issue Oct 2, 2015 · 8 comments

Comments

@bvssvni
Copy link
Member

bvssvni commented Oct 2, 2015

Editing the "user_input" example to test joystick events with the SDL2 window backend. I'm using a PS3 controller connected to a mac.

Here is the input button mapping:

PS3 controlller

@bvssvni
Copy link
Member Author

bvssvni commented Oct 2, 2015

Joystick axis is a bit harder to read. Could draw the input visually.

@xaviershay
Copy link

you beat me to it! :)

@bvssvni
Copy link
Member Author

bvssvni commented Oct 3, 2015

I was trying to connect via Bluetooth and Firefox crashed. Wat.

@bvssvni
Copy link
Member Author

bvssvni commented Oct 3, 2015

PS3 controller via Bluetooth works now. Here is what I did on OSX 10.9.5:

  1. Enable Bluetooth in Systems Preferences.
  2. Connect the PS3 controller via USB.
  3. Click at the Bluetooth icon in the top bar, select the MAC address (I had to guess) and then -> Connect.
  4. Disconnect the USB cable.
  5. Hold the button with PlayStation logo down for 1-2 seconds.
  6. Start the "user_input" example.

@bvssvni
Copy link
Member Author

bvssvni commented Oct 3, 2015

I have a PlayStation Move controller as well, but it doesn't work yet.

@ffigiel
Copy link

ffigiel commented Aug 11, 2018

The user_input example doesn't see my xbox360 controller input at all. What can I do? I'm on Windows 10

@cedric-h
Copy link

cedric-h commented Sep 1, 2018

Exact same situation as @megapctr... is it because glutin doesn't suppoort gamepad input? Would an SDL2 backend work?

@cedric-h
Copy link

cedric-h commented Sep 1, 2018

https://github.com/Arvamer/gilrs

This lib works quite well for me, do keep in mind however that it doesn't have Mac support.

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

4 participants