This is a simple command line code written in ANSI C that reads USB Joystick sticks and buttons and sends those inputs to a machine at a network address and port via UDP/IP. The networked machine can be localhost so it can be sent to the same machine it's running on.
The C code is GPL'ed and freely available here. The main.udp.joystick.c code interfaces and links against the Simple DirectMedia Layer library, version 2. SDL source and installation instructions are at liSDL.org and also mentioned briefly in the Readme.txt here.
The software was developed on a Windows machine running Cygwin. It also compiles and runs on Linux. See the Readme.txt for more detail.
If you want OpenSource software to gather joystick or game controller inputs to send over the network as a custom UDP packet, this software should help. It reads a config file for configuring the joystick axes, buttons, hats, x- and y-ball inputs and networking IP and port.
Version 1.9 of the software: joystick_to_udp_v1.9.tar.gz
File listing of the v1.9 archive:
joystick_to_udp/v1.9/
joystick_to_udp/v1.9/gpl.txt
joystick_to_udp/v1.9/main.udp.joystick.c
joystick_to_udp/v1.9/main.udp.joystick.conf
joystick_to_udp/v1.9/main.udp.joystick.h
joystick_to_udp/v1.9/makefile
joystick_to_udp/v1.9/parse_config_file.c
joystick_to_udp/v1.9/Readme.txt
Email if you have questions: comperem@gmail.com
-------------------------------------------------
created : 21 Sep 2016
modified: 22 Sep 2016