Thread
:
Using the wiimote to control the n810
View Single Post
jldiaz
2008-04-11 , 23:17
Posts: 48 | Thanked: 40 times | Joined on Apr 2008 @ Spain
#
5
Originally Posted by
Benson
I think cwiid already does that, but multiple projects isn't necessarily bad.
It is not exactly the same goal. As far as I know, cwiid is aimed to provide an interface between wiimote and applications, by creating gamepad and mouse devices which can be read from applications. It requires to install some device controllers through kernel modules. Therefore, the use of the wiimote is restricted to applications which are able to get the input from these device drivers (mostly games and console emulators, I assume).
My goal, instead, is to provide a simple and configurable mean for assigning "macros" to wiimote buttons, without installing any driver or kernel module. Only pure python. These macros can be any sequence of X-window events (keypresses, key releases, mouse movements, stylus taps...). This allows us to control any arbitrary application through the wiimote, even if the app is not joypad-capable.
For example, I want to use the wiimote to control vagalume, using the UP key to mark a track as loved, and the DOWN key to mark a track as banned. Marking a song as loved in vagalume requires, first to tap on the "heart" button (or to press the Ctrl-L accelerator), and then tap on the "OK" button in the confirm dialog (or hit Return). With my script I can assign this sequence of user inputs to the Wiimote UP button, by assigning it the sequence of strings: "k C-L", "k Return" ("k" stands for "keystroke"), or, alternatively, the sequence of strings "t 330 390", "k Return" ("t" stands for "tap with stylus at coordinates...").
__________________
--ル Diaz
Last edited by jldiaz; 2008-04-11 at
23:41
. Reason: Fixing typos
Quote & Reply
|
The Following 2 Users Say Thank You to jldiaz For This Useful Post:
qwerty12
,
Underscore
jldiaz
View Public Profile
Send a private message to jldiaz
Find all posts by jldiaz