Git Product home page Git Product logo

libndofdev's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libndofdev's Issues

Install instructions?

Thx for sharing this! Could place provide some instructions on how to install / use this?

Joystick Hats Support

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!

libexplain linking errors

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.

gcc 4.9.3 warnings.

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));

Not compatible with SpaceMouse Pro.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.