v1993 / linuxmotehook Goto Github PK
View Code? Open in Web Editor NEWCemuhook-compliant WiiMote motion provider for Linux
License: Apache License 2.0
Cemuhook-compliant WiiMote motion provider for Linux
License: Apache License 2.0
I want to be able to make a profile that would have the Wii Remote pointing straight ahead instead of straight up or horizontal, but I can't seem to get one to work. It's useful for games like Splatoon. Thanks!
Hello,
I've successfully compiled lua-xwiimote and after connecting wiimote with bluetooth and running ./autocalibrate.lua I get the following error:
lua5.3: ./autocalibrate.lua:43: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'string.format'
./autocalibrate.lua:43: in main chunk
[C]: in ?
The wiimote is correcty detected by xwiishow:
Listing connected Wii Remote devices:
Found device #1: /sys/devices/virtual/misc/uhid/0005:057E:0306.0002
End of device list
on ubuntu-devel I'm trying the latest "bundled" package from this repository and got myself libffi6, as suggested here, but I get the following error:
$ ./main.lua
Note: no MotionPlus detected, providen data will be limited to acceleration only
If you have one, it can be hotplugged now
lua5.3: /home/me/Apps/linuxmotehook_0.2.2/wiimote.lua:189: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'string.format'
/home/me/Apps/linuxmotehook_0.2.2/wiimote.lua:189: in field 'setup'
./main.lua:104: in main chunk
[C]: in ?
Hello,
First of all, thank you for your work.
The lua libraries were installed manually via luarocks. Everything works fine before step 5. At this point when I try to run main.lua
, here is the error message returned:
:~/linuxmotehook$ lua main.lua
(process:32213): xwiimote-cemu-WARNING **: 02:10:56.080: Failed to parse config file presets.json: "bad argument #2 to 'json.decode' (number expected, got table)", continuing...
(process:32213): xwiimote-cemu-WARNING **: 02:10:56.080: Failed to parse config file config.json: "bad argument #2 to 'json.decode' (number expected, got table)", continuing...
lua: /home/XXX/linuxmotehook/configloader.lua:126: PropertyUseProfile
not found in config but is required
stack traceback:
[C]: in function 'error'
/home/XXX/linuxmotehook/configloader.lua:126: in local 'resolvePropertyDT'
/home/XXX/linuxmotehook/configloader.lua:195: in main chunk
main.lua:54: in main chunk
[C]: in ?
Did i do something wrong?
Have configured a Wiimote motion plus and tested using PadTest and moving mote shows movement of gyro. Not exactly sure how to derive last three values from PadTest so just set them all to -1. Cemu recognizes the provider and I can set by Slot for the mote. When I go to configure though as a Wiimote no device is recognised - I can only find a direct input device which I can map buttons to but can't set rumble strength and when playing a game the gyro doesn't register (only buttons).
Would really appreciate some help as I must be missing something obvious.
I'd like to use wiimote in yuzu switch emulator, which listens to any Cemuhook compatible UDP input source to provide motion and touch input. However, as soon as I start yuzu, the mail.lua crashes:
$ ./main.lua
Note: using individual calibration values
WiiMote successfully registered (MAC 0x0005057E0306)
**
Lgi:ERROR:lgi/marshal.c:1177:lgi_marshal_2c_caller_alloc: assertion failed: (size > 0)
Bail out! Lgi:ERROR:lgi/marshal.c:1177:lgi_marshal_2c_caller_alloc: assertion failed: (size > 0)
Aborted (core dumped)
When I start main.lua with a Wii U Pro Controller connected and a Wii Remote Plus it crashes and doesn't work.
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.