greghgradwell
Trying to use joystick - Can't see/access /dev/input/js0 on RPi3
I am using the Joystick package (which I am also now maintaining) to connect to a USB joystick. I have no issues when I am on my Linux machine, but I have not been successful with the same code on a Raspberry Pi 3.
When I plug the joystick into my desktop and execute ls /dev/input, there are two additional results (compared to before plugging it in), event16 and js0.
With the RPi3, I only see an additional event1, but there is no js0, which is the device the code will try to open. Does anyone know how I can get js0 to become available?
Apologies if my terminology is all over the place. This is a little more low-level than I’m used to.
Thanks in advance!
Most Liked
axelson
If this is on nerves I think you might want to take a look at input_event:
https://github.com/nerves-web-kiosk/input_event
greghgradwell
Oh, that looks perfect! I needed to know about keyboard input too, so you just solved TWO of my problems. Thanks! ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










