Git Product home page Git Product logo

Comments (9)

v1993 avatar v1993 commented on May 27, 2024

What is an error printed to console (please format it properly using ``` on each side of message and make sure it worked right using preview)?

from linuxmotehook.

Sayora77 avatar Sayora77 commented on May 27, 2024

When starting with Wii U Pro Controller connected:

Note: using individual calibration values
WiiMote successfully registered (MAC 0x************)
lua: /home/pika/Downloads/linuxmotehook/wiimote.lua:135: No such device
stack traceback:
        [C]: in function 'assert'
        /home/pika/Downloads/linuxmotehook/wiimote.lua:135: in field 'setup'
        main.lua:104: in main chunk
        [C]: in ?

When connecting after starting script:

Note: using individual calibration values
WiiMote successfully registered (MAC 0x************)

(main.lua:5462): Lgi-WARNING **: 11:16:41.308: Error raised while calling 'lgi.cbk (function: 0x55b0b8cd0860): GLib': /home/pika/Downloads/linuxmotehook/wiimote.lua:135: No such device

from linuxmotehook.

v1993 avatar v1993 commented on May 27, 2024

Hmm, interesting. Sadly, I think this is a problem with library I use for wiimote handling. Try replacing line 135 in wiimote.lua

	assert(iface:open(wii.core | wii.accel))

with

	iface:open(wii.core | wii.accel)

Does this help? It isn't a proper fix, but might work as workaround.

from linuxmotehook.

Sayora77 avatar Sayora77 commented on May 27, 2024

Yes it does work. It creates an additional useless motion source for the Pro Controller but it can still use the Wii Remote's one thanks!

from linuxmotehook.

v1993 avatar v1993 commented on May 27, 2024

Wow, that's weird. I probably should try to workaround this problem by handling open failure as a warning instead. Can you, please, test my fix/workaround when I'll do it?

from linuxmotehook.

Sayora77 avatar Sayora77 commented on May 27, 2024

Ok, sure!

from linuxmotehook.

v1993 avatar v1993 commented on May 27, 2024

Please check out v0.2.1, it should work this bug around while not adding useless motion provider.

from linuxmotehook.

Sayora77 avatar Sayora77 commented on May 27, 2024

It does work properly. It just gives warnings, but still lets it connect properly. Thanks!

from linuxmotehook.

v1993 avatar v1993 commented on May 27, 2024

Yes, warnings are kept to avoid silencing actual errors. If so, I consider this issue resolved. Also, this bug is probably actually fixed in newer versions of libxwiimote, but I use system-wide one.

from linuxmotehook.

Related Issues (8)

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.