libspnav spnav_open() writes to stderr on failure
Brought to you by:
jtsiomb
Hi,
the spnav_open() function always writes the error to stderr. So there is always an error on the console if a program uses libspnav and the spacenav daemon is not running or not even installed. This might irritate users (dicussed in the FreeCAD forum). Would it be possible just to store ERRNO and provide a function to access it? Then it would be possible to log or ignore the error in the application.
I could make an implementation and send a pull request for review.
Cheers,
Torsten
Are you refering to the "failed to connect" message? Yeah that's really unnecessary, I just removed it. Commit: 844338b
Thank you!