[erlang-questions] Reading serial data from a USB Gamepad

József Bérces jozsef.berces@REDACTED
Sun Mar 12 18:23:19 CET 2017


You can give a try to this one:
http://github.com/tomszilagyi/gen_serial

From: erlang-questions-bounces@REDACTED [mailto:erlang-questions-bounces@REDACTED] On Behalf Of qp
Sent: Sunday, March 12, 2017 17:57
To: Erlang/OTP discussions <erlang-questions@REDACTED>
Subject: [erlang-questions] Reading serial data from a USB Gamepad

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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170312/c8c4ecd8/attachment.htm>


More information about the erlang-questions mailing list