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 

Some config' file questions

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid
View previous topic :: View next topic  
Author Message
Miles Prower



Joined: 04 Feb 2007
Posts: 2

Digg It
PostPosted: Sun Feb 04, 2007 4:32 am    Post subject: Some config' file questions

Hi there,

I'm a somehow novice Linux user (Ubuntu for about a year, non-developper) who happens to have a Wii, a laptop with bluetooth built-in, and the ability to lecture stuff in conferences.

I've been a Linux fanatic for the time being, even if I was not daring enough to try other distros (though I'd gladly give Debian a try probably in a few more months). The installation process of CWiid was a breeze, and I'm using it quite a lot since I found it, even building a simplistic IR sensor bar just for that. Will definitely be useful in Presentations.

I'm planning on organizing a small Ubuntu Install Party on my campus next thursday and getting things ready. I expect to use both Beryl, a virtual machine, a presentation and some still pictures / graph to explain the process in detail. Of course, I'll be using the Wiimote all of that time as a point-and-show device, instead of a laser beam or a regular mouse.

For that purpose, I'm building a config file for controls in CWiid. I'm thinking of this :
D-Pad = keyboard Up/down/left/right
A = left-clic
B = right-clic
+ = ctrl+alt+right (switching between virtual desktops - Beryl)
- = ctrl+alt+left (switching between virtual desktops - Beryl)
HOME = ctrl+alt (let go of virtual machine - VMWare)
1 = engage free Beryl Cube rotation (?) - move the cursos around to rotate, using the wiimote
2 = dunno, maybe a shortcut to some app

Some of these bindings requires multiple keys press. Is that possible in CWiid, and how could I achieve that?

Thanks for a quick answer ;)
Back to top
View user's profile Send private message
Snark



Joined: 28 Dec 2006
Posts: 115

Digg It
PostPosted: Sun Feb 04, 2007 9:05 am    Post subject:

Hi Tails. To answer your question, I don't think this is currently possible without the use of some third party program. Without one, your best bet is to do both of the following:

1.) Change the hotkey combinations for Beryl to be less complex by replacing them with your own custom ones (ex: two keys instead of three and all using the same single command key), and

2.) incorporate your preferred command key into the wiimote's button map in cwiid.

This way, you can just do normal button combinations with the wiimote.

Of course, if you have a nunchuck attachment then you can probably keep the three button combos which might actually make life easier. I don't know though because I don't have a nunchuck to try it with.

Alternatively, you MIGHT be able to use a third party program to map a series of key presses to a single key and then map that key to your wiimote. I don't know of any such programs though. Maybe there is also something out there that will run a custom command (like maybe sh /path/to/shell_script.sh) when pressing a key or combination of keys, but again - I don't know of any.

One last note; you can make a feature requests on the wiki page.
Back to top
View user's profile Send private message
Miles Prower



Joined: 04 Feb 2007
Posts: 2

Digg It
PostPosted: Sun Feb 04, 2007 9:32 am    Post subject:

I guess only a third party app could do that then - changing the mappings in Beryl is one thing, but using ctrl+alt for VMWare could be tougher.

Maybe I could just map 1 to CTRL, 2 to ALT, and go for it.

BTW I just realized that the config file doesn't seem to have any impact on CWiid's behavior on my side. As I'm running it with sudo, I placed it in the /root/ folder (/root/.wminput). Also have a copy in my own home (/home/miles/.wminput) but nah.

EDIT > Managed to get WMD to work, pretty neat.
Back to top
View user's profile Send private message
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: Mon Feb 05, 2007 5:11 pm    Post subject:

Concerning button mapping, it seems like Xmodmap can be configured to handle that - I'll check it out when I get home and have a Linux machine to work with.

Concerning the config file not working, does wminput tell you that the config file is not found? If not, sounds like there is a problem somewhere. Also, the configuration file was moved to ~/CWiid/wminput.conf a version or two ago.

I'm currently gutting wminput's configuration and plugin architecture to support gaming (js), more complex configuration, and extension mapping (plugin changes won't be much work to port for existing code). I'll keep these kinds of considerations in mind as I do so.
_________________
"I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid
Back to top
View user's profile Send private message
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: Tue Feb 06, 2007 3:52 pm    Post subject:

It looks like the XTest extension to X would work, but I can't find a program that implements it, or any documentation for it. Anybody know anything about this?

Then again, if you're using Beryl, you're probably using XGL, so I don't know if it has an XTest or similar extension.
_________________
"I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid All times are GMT
Page 1 of 1

 
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