janoc / libndofdev Goto Github PK
View Code? Open in Web Editor NEWLinux support for the 3Dconnexion SpaceBall, SpaceNavigator and joysticks in the SecondLife clients
Linux support for the 3Dconnexion SpaceBall, SpaceNavigator and joysticks in the SecondLife clients
Thx for sharing this! Could place provide some instructions on how to install / use this?
Hi!
I am currently looking into the NDOF support for Firestorm, and I noticed that my XBox 360 pad's D-Pad isn't supported by libndofdev. The D-Pad gets recognized by SDL as a Joystick Hat, so I added support for that to libndofdev in my fork. This works fine for Linux, but I assume it won't do anything for other OSes.
So my question would be: Are hats recognized in the SL viewers at all on Windows / OSX? And should I expose hats as its own data field or map them to additional axes?
Any insight is greatly appreciated!
Thanks!
When building the libndofdev, a gcc warning occures:
cc -march=native -O2 -pipe -ggdb -c -o ndofdev.o ndofdev.c
ndofdev.c: In function ‘ndof_init_first’:
ndofdev.c:159:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(stderr, "%s\n", explain_ioctl(fd, EVIOCGBIT(EV_REL, sizeof evtype_mask), evtype_mask));
This warning later turns into linking errors when building the secondlife client.
make -j8 'CFLAGS=-march=native -O2 -pipe -ggdb'
cc -march=native -O2 -pipe -ggdb -c -o ndofdev.o ndofdev.c
ndofdev.c: In function ‘ndof_init_first’:
ndofdev.c:186:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(spacenav_fd, &led_ev, sizeof(struct input_event));
^
ndofdev.c: In function ‘ndof_libcleanup’:
ndofdev.c:229:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(spacenav_fd, &led_ev, sizeof(struct input_event));
G'day. I just bought a shiny new SpaceMouse Pro today, and was wondering why no SL viewer could use it in Linux. Looks like it's too new for libndofdev. It's ID.product is 0xc62b, and it has 15 buttons. I might have a hack at fixing that tonight, or sleep on it and try to fix it tomorrow. Then I'll send you a patch if I get anywhere. Unless you beat me to it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.