wjoy icon indicating copy to clipboard operation
wjoy copied to clipboard

wjoy support for accelerometer data?

Open GoogleCodeExporter opened this issue 9 years ago • 10 comments

After lots of fiddling, it dawned on me that wjoy might not support 
accelerometer data from the wiimotes. I can receive button pushes just fine, 
but what I really need is the motion. Is that possible?

What version of the product are you using? On what operating system?
Latest version, 0.6, on Mac OSX 10.8.2


Original issue reported on code.google.com by [email protected] on 5 Mar 2013 at 4:59

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Yes, it's possible :) I plan it to 0.8 verstion (may be :) ). Internally WJoy 
support all wiimote sensors (accelerometers, cameras, it can play sound 
throught wiimote speaker :) ).

Original comment by alexandr.serkov on 5 Mar 2013 at 6:43

  • Changed state: Accepted

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Great news! I was looking for a way to change the default mode the wiimote 
sends out data, but I'm not nearly experienced enough to figure that out. 
Thanks for your great work on this, and looking forward to version 0.8. Let me 
know if I can help test or something. :)

Original comment by [email protected] on 5 Mar 2013 at 6:46

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Any headway on this? You make a comment that motionplus is supported in 
wiimote.framework...could I somehow use wiimote.framework along with 
controllermate in os X?  Great work, by the way, your driver is a savior!

Original comment by [email protected] on 18 Oct 2013 at 12:25

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Sorry, no :( Accelerometer works fine (and motion plus too), but 
Wiimote.framework - simple library (writed on Objective-C), what do all works 
in WJoy about interacting with Wiimote/Wii U Pro Controller.

Framework can be used in third-party applications (interface of 
Wiimote.framework is very simplest, i think), but for it developer need to do 
some work.

And yes, i think, what Wiimote.framework can be used with ControllerMate, but 
for it we need write some plugin/hack (ControllerMate dosn't support plugins :( 
). Sorry.

Original comment by alexandr.serkov on 18 Oct 2013 at 7:12

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Do you have any sample code for getting accelerometer data out of the Wiimote? 
The test app only seems to track button presses (I'm Obj-C literate, so all I 
need are a few pointers).

Original comment by [email protected] on 22 Apr 2014 at 9:42

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Yes, test.app doesn't handle accelerometer. Example of accelerometer use in 
svn: trunk/examples/WATest (with latest binary of Wiimote.framework).

Original comment by alexandr.serkov on 23 Apr 2014 at 8:14

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Thanks, I'll check that out.

Original comment by [email protected] on 23 Apr 2014 at 8:15

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

And... I didn't test accelerometer too deep, if you find any bug - write to me, 
i'll fix it :)

Original comment by alexandr.serkov on 23 Apr 2014 at 8:18

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Well, first I need to try to get this to work with Unity, which might be 
tricky...

Original comment by [email protected] on 23 Apr 2014 at 8:19

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter

Good luck! But one note: wiimote.framework is not thread-safe, it can be used 
only from one thread (and, may be, only from main thread).

Original comment by alexandr.serkov on 23 Apr 2014 at 8:41

GoogleCodeExporter avatar Aug 09 '15 16:08 GoogleCodeExporter