[erlang-questions] Reading serial data from a USB Gamepad
Tony Rogvall
tony@REDACTED
Sun Mar 12 21:36:00 CET 2017
https://github.com/tonyrog/uart
/Tony
> On 12 mar 2017, at 17:57, qp <quantumpotato@REDACTED> wrote:
>
> Hi,
>
> I want to read USB data from a Gamepad in Erlang to play a game.
>
> Programs like JoyToKey and Enjoyable convert Gamepad inputs to keyboard input, but they only send 1 character so using io:read would require an additional "return" press to send the input.
>
> Where do I start looking to learn how to read gamepads? I've heard that Erlang ports can be used to interact with the world outside the Erlang shell but I have no idea where to look. I found erlang-serial on Github but had trouble installing it https://github.com/tonyg/erlang-serial/issues/14
>
> Thank you!
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170312/0ab2ab95/attachment.bin>
More information about the erlang-questions
mailing list