View Single Post
jldiaz's Avatar
Posts: 48 | Thanked: 40 times | Joined on Apr 2008 @ Spain
#1
Hello,

I've developed a small python script which, when run in an xterm in my n810, connects to my Wiimote, read the events it sends, and maps the wiimote buttons to X-window events, such as keypresses or touchscreen taps. This way, I can control any application from my wiimote.

The mapping "wiimote buttons"->"X-window events" is configurable. My default setup allows for a wide range of applications:

Code:
Wiimote   | Action on N810
----------+---------------------------------------
  Up      |   Up
  Down    |   Down
  Right   |   Right
  Left    |   Left
  A       |   Return
  +       |   Zoom/volume +
  -       |   Zoom/volume -
  1       |   Opens application specific menu
  2       |   Opens desktop "Applications" menu
  B       |   "Mode shift" (see below)
----------+----------------------------------------
 B+Up     |   Fullscreen
 B+Down   |   Close window
 B+Right  |   Open window-list menu
 B+Left   |   Escape
 B+A      |   (not used)
 B++      |   (not used)
 B+-      |   (not used)
 B+1      |   (not used)
 B+2      |   (not used)
I think this opens interesting posibiltiies for audio players. You can connect your nokia to your stereo, and control the playlist, volume, etc. from your wiimote. Although it is also possible to control any other application (mplayer, browser, email, etc.) I cannot see any advantage of using a remote for this (except for the coolness factor), because you need to be anyway close to the n810 in order to read the screen.

At the moment, only the Wiimote buttons are read, the accelerometers information is discarded. It is theoretically possible to use it also, but I cannot think any useful application for it (except, perhaps, shaking the wiimote in order to skip a song, but this, although cool, it is not very comfortable).

Currently, the python script is only a quick&dirty hack, kinda "proof of concept", and it only works with my own Wiimote (because the MAC is hardcoded in the script, but it is easy to change it if you know the MAC of your wiimote). However, I plan to make it evolve into a more friendly application.

I would like to publish the script, for feedback. Which would you consider the more convenient way of publishing it? Should I open a new project in the garage?

Ah, I forgot to mention that you can see a demo of this thing in action in Youtube (click on the image):

__________________
--ル Diaz
 

The Following 2 Users Say Thank You to jldiaz For This Useful Post: