![]() |
Wiicontrol Application for Maemo
I have been looking into code by JLDiaz and Will Woods for the wiimote and wiicontrol. The wiicontrol was almost end-user ready, so I pimped it a bit and made the first easy to use version of it.
Install first python (canola or ukmp should do the trick) Install wiicontrol from here: https://garage.maemo.org/frs/downloa...ol-1.0_all.deb Once you run wiicontrol, it asks you to press 1+2 on your wiimote. Do so. A few secs passes and voila. You have a nicely working controller for games / presentation use. Works brilliantly for Doom, Bomberman, emulators, or even as remote for music playback. Anyway, this is the first version, so don't be surprised it all doesn't go as planned. |
Re: Wiicontrol Application for Maemo
Ah, the code already has partial support for accelerometers as well, so I'll try to investigate those soon a bit as well. Also, I would really like to get the keymaps to be user configurable. For now, you can also just edit the code, layout is in the form of:
This is the default mapping: mapping={ 'U': ["a Left"], 'D': ["a Right"], 'L': ["a Down"], 'R': ["a Up"], 'A': ["k F4"], # Application menu '+': ["k F7"], # Zoom/volume + '-': ["k F8"], # Zoom/volume - '1': ["a Space"], '2': ["a Return"] } |
Re: Wiicontrol Application for Maemo
This may seem like a dumb question but would it be possible to get this to run with fceu, or any other game, and if so how?
|
Re: Wiicontrol Application for Maemo
Do you think it would be possible to specify mapping dependent on the program? So if Canola was the main window on the screen it would have specific functions, but if you closed it and loaded.. so LX Doom it would switch to that config automatically based on window detection?
|
Re: Wiicontrol Application for Maemo
You can run fceu with it. It basically maps the wiimote keys to actual key events on the device, so it works for all applications (even browsing).
In theory, it could have window dependent functionality, but it's more trouble than it's worth IMHO. I'll try to get the user configurable set to the application this weekend. It will also come with gamepad mode and browser mode, which should provide good base level to start with. I was also yesterday able to get the accelerometers working and I was just playing doom by leaning the wiimote left and right - really nice. However, it's now binding to the keys and firing key events really quickly, so for other than doom, the gyro stuff isn't quite there yet. |
Re: Wiicontrol Application for Maemo
Link to the gyro test version. You need to click on the gyro link to activate it. When it's activated, the processor consumption will go a bit up and wiimote will actually activate the gyros, which causes power drain on the wiimote.
|
Re: Wiicontrol Application for Maemo
Urho, perhaps you should do a short Youtube clip on this, people would get more excited. :)
|
Re: Wiicontrol Application for Maemo
Yeah, I had too little time to do it yesterday and we have Vappu today, so today after work and the next one or two days in finland are strictly only for partying. So, cannot make that until the weekend.
|
Re: Wiicontrol Application for Maemo
Alternate methods for dealing with accelerometers: map them as mouse events; either absolute screen position from orientation, or relative as long as orientation is maintained; the mouse_poll program (used in the world famous USB and BT mouse support) here could be a helpful example/place to rip code from.
(You mean playing Doom with wiimote is not partying? Or does it just stop being a party when the camera starts rolling?) |
Re: Wiicontrol Application for Maemo
Forgot the link:
https://garage.maemo.org/frs/downloa...l-1.01_all.deb |
Re: Wiicontrol Application for Maemo
Yeah, there is already some code for the mouse support done by Diaz, so it's definitely doable. I just want to start with something easyish and build on top of that.
|
Re: Wiicontrol Application for Maemo
Just published new version:
http://konttoristhoughts.blogspot.co...n810-n800.html The post included youtube video of the wiicontrol in action. By the way, I've just been testing the snes emu on wiicontrol today. Seems to work pretty ok, but it's not fast enough for super mario bros. For the rpg games it's definitely good enough though. |
Re: Wiicontrol Application for Maemo
I just added a new version that has snes emu key bindings as well. (1->c 2->d A->start). Link is at the end of the blogpost
|
Re: Wiicontrol Application for Maemo
just tested out the new version. works reallly nice...
I have the nun-chuck and the classic controller, anyway I can map the modifier buttons presses to the chuck or classic.. its not really a pain to press a+up/down/start/etc. but the chuck and classic are there why not use em, right... |
Re: Wiicontrol Application for Maemo
Wow :)
Looks like that I need Wiimote, course there is no software for PS3 controller. Games must be lot more fun with Wiimote than N800 own keypad. :) |
Re: Wiicontrol Application for Maemo
Yeah, I'll definitely look into the nunchuck this week. Classic I don't own, so cannot help in that regard. PS3 controller should be as easy to map as the wiimote (+nunchuck), but I don't have one of those either. Maybe someone who does, could add the support based on these scripts.
Anyway, when you look at the vga output project, combine it with this (maybe two controller support), you have a really nice gaming setup. |
Re: Wiicontrol Application for Maemo
Quote:
|
Re: Wiicontrol Application for Maemo
i think i must have missed it , what BT profile does this operate on?
|
Re: Wiicontrol Application for Maemo
Quote:
|
Re: Wiicontrol Application for Maemo
maybe in the future we have more power
|
Re: Wiicontrol Application for Maemo
I would love to see this work for Vagalume or something similar. That way I could plug my N810 into my stereo system and control it from my couch.
It would be a great way to listen to internet radio and such through some nice speakers without having to get up off my butt every time a song I don't like comes on. |
Re: Wiicontrol Application for Maemo
Quote:
|
Re: Wiicontrol Application for Maemo
You can use it for any applications on maemo. Also on vagalume (which is great app, I agree!).
|
Re: Wiicontrol Application for Maemo
I like how this setup is just a deb and how It allows easy pairing with any wiimote. However it seems to be very crashy and some buttons I can't get to register. For example the "1" button. The home button causes all sorts of trouble too. I mostly did testing in duke nukem.
|
Re: Wiicontrol Application for Maemo
Quote:
Currenty, wiicontrol sends X-events to other apps (keypresses, mouse clicks..) which mean that the application to control needs to be in foreground. However, the latest Vagalume version offers another way of controlling it, via D-bus messages. I'm planning to add D-bus support to wiicontrol too. For the end-user, this mean that you can map certain buttons to actions addressed to Vagalume, and these do not require Vagalume to be in the foreground. So you can have Vagalume in the background, while having in foreground a different app (for example, pdf-viewer in order to read a book while listening music), and still be able to control the music from the wiimote, without switching apps. Stay tuned :-) |
Re: Wiicontrol Application for Maemo
Quote:
The "1" button problem probably is related to the keypress-keyrelease issue: Each wiimote button can be mapped to a key in two different ways: 1) When you press the button in the wiimote, a pair keypress/keyrelease is generated in the tablet. When you release the button in the wiimote, nothing happens in the tablet 2) When you press the button in the wiimote, only a keypress is generated in the tablet. When you release the wiimote button, a keyrelease is generated in the tablet. The first way is useful for controlling most GUI applications (browser, media players, book readers, menus...) however, it doesn't work with most of the games developed with sdl. For these games, the second way is the proper way. Probably the "1" button is mapped to a key using the first way, and then it doesn't work in games such a duke nukem. In the latest version of wiicontrol (only at svn, as said before), the mapping from wii to tablet events is decoupled from the main script, so the user can provide his own mappings in external files. This simplifies the task of having maps specific to some apps. A proper mapping should be written to duke nukem this way. Stay tuned for the upcoming .deb :-) |
Re: Wiicontrol Application for Maemo
Hmm... maybe I should package the latest version.
|
Re: Wiicontrol Application for Maemo
I think you should :-) I'll test it out if ya do!
|
Re: Wiicontrol Application for Maemo
Any chance of releasing some time soon? Or am I finally gonna have to figure out how the maemo SDK works so i can compile it myself?
|
Re: Wiicontrol Application for Maemo
Quote:
The mission of the .deb is to copy the python scripts and configuration files at appropiate places, and "install" a menu icon for the app. Without the .deb, you can still perform a manual installation. Simply follow these steps:
Hope this helps. |
Re: Wiicontrol Application for Maemo
I have a chuckle thinking about what people will try to figure when they see me using a Wiimote to change music tracks...
Will have to de-brand my Wiimote :D |
Re: Wiicontrol Application for Maemo
Has anyone else experienced crashes right after pressing 1+2? I've tried both the .deb and the manual install (after uninstalling the .deb). I have canola and bluemaemo installed so I think I have all the dependencies.
Edit: Nevermind, I ran it from xterm and found some indentation errors, probably from copying the files over from a Windows machine. Works great now, thanks for a great app! |
Re: Wiicontrol Application for Maemo
Has anybody gotten this to work with iNES?
I searched around, and there was a comment on konttori's blog that mentioned that iNES didn't work with wiicontrol. I'm assuming this is still the case? |
Re: Wiicontrol Application for Maemo
I would assume that ines would work just fine after you configure the buttons in ines.
|
Re: Wiicontrol Application for Maemo
are we ever going to see a copy of wiicontrol that allows you to change what key the buttons on wiimote press.
|
Re: Wiicontrol Application for Maemo
Quote:
|
Re: Wiicontrol Application for Maemo
Hmm... Well I have so many things to do on the pipeline that I might not have the time to make the user configurable buttons UI. But, really, it should be easy enough to just change the code on the device as well.
|
Re: Wiicontrol Application for Maemo
given the imminent release of the n900, is the development of Wiicontrol going to continue, or is the project dead?
|
Re: Wiicontrol Application for Maemo
|
Re: Wiicontrol Application for Maemo
is the guy who wrote that blog the original developer?
|
All times are GMT. The time now is 20:58. |
vBulletin® Version 3.8.8