WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

windows: wiimote-gui (in C)
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Remote and Nunchuck
View previous topic :: View next topic  
Author Message
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 9:17 am    Post subject: windows: wiimote-gui (in C)

UPDATE: Now it can map Wiimote buttons to the keyboard.
Also, wiimote-api has been separated and statically linked.
New link - http://code.google.com/p/wiimote-api/downloads/list
Videos of wiimote-gui in action
http://www.youtube.com/watch?v=rOkhND0dbWE (long version) http://www.youtube.com/watch?v=IrN15FYRuRU (short version)



I wrote a program over the past couple of weeks. It's a wiimote tester, with a gui for windows.

It's not very fleshed out, but it's got the following functionality:

  • can control mouse with wiimote IR pointer (not with motion sensor)
  • outputs the full HID report to the window
  • toggle all four LEDs in any combination
  • toggle rumble


but. the whole reason I bring it up even with CarlKenner's scripted option, is that it's written in C. it's 35kb currently unoptimized. and because it's in C, it might work as a better solution when ported to linux than the current python one. since, well, the goal of this whole website is supposedly to make a linux port to the wii.

to use it:
connect your wiimote to the computer. it should show up on your device manager as an HID-compliant game controller or something. of course, i haven't tested any computer setup except my own, so for reference, I'm using a Dell internal TrueMobile bluetooth module with the microsoft stack. I got rid of the dell stack a long time ago, so i haven't tested it with that.

once you're connected, turn on your wii to use the sensor bar(or any IR source, but preferably an IR LED source). then run the program and clicking on the IR button should make the wiimote control your mouse. i programmed the trigger to be the left mouse button and the 'a' button to be the right mouse button.

i still need to tweak the range because the value 0xFE doesn't scale perfectly to 65535 which is the edge of the screen. also, i need separate the wiimote api from the gui, but that requires me to learn windows threading which will take a little bit.

which brings me to another question, i haven't licensed a lot of software and i was wondering what the pros and cons of various licenses are. is there a link? if i wanted it to be able to be used in wiili, would it have to be GPL'd? what about LGPL?

let me know if there are any problems and i can try to see if i can fix them. also, what other things should i implement? i know there are a lot of things. should i use the motion sense data? i'm hesitant, because i don't want to fiddle with calibration data and brick wiimotes left and right.

-mike

Scroll down for a link.


Last edited by mikey on Mon Jan 15, 2007 6:54 am; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 9:17 am    Post subject:

you're wondering where the link is? well, apparently I need 10 posts, which I don't have.

hold on.
Back to top
View user's profile Send private message Visit poster's website
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 9:19 am    Post subject:

well. until i get 10 posts, it's

http://mikeyin.org/wii

replace the spaces with a '.' and a '/' respectively
Back to top
View user's profile Send private message Visit poster's website
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 9:21 am    Post subject:

appropriate additions would probably include downloading and uploading miis. there are programs that are doing that already, but it'd be nice to have it in one?
Back to top
View user's profile Send private message Visit poster's website
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 9:34 am    Post subject:

now i just need to wait 7 days.

can an admin edit my post to have an address or someone just post a reply with a working address?
Back to top
View user's profile Send private message Visit poster's website
morphemass



Joined: 17 Dec 2006
Posts: 5

Digg It
PostPosted: Mon Dec 25, 2006 5:54 pm    Post subject:

Great to see this stuff but its wasted code sans source (as in I have WMD running on Linux already but I cant get your exe running now can I *grin*)
Back to top
View user's profile Send private message
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Mon Dec 25, 2006 5:56 pm    Post subject:

well, i don't want to release the source before i do two things, seperate the wiimote stuff from the window, and pick a license
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Remote and Nunchuck All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group