summaryrefslogtreecommitdiff
path: root/content/Informatique/2009-03-11-wiimote.rst
diff options
context:
space:
mode:
Diffstat (limited to 'content/Informatique/2009-03-11-wiimote.rst')
-rw-r--r--content/Informatique/2009-03-11-wiimote.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/content/Informatique/2009-03-11-wiimote.rst b/content/Informatique/2009-03-11-wiimote.rst
index eb6641d..325d4b7 100644
--- a/content/Informatique/2009-03-11-wiimote.rst
+++ b/content/Informatique/2009-03-11-wiimote.rst
@@ -23,9 +23,9 @@ as main, it use pygame for displaying the infrared sources the wiimote can
detect, but it is also compatible as plugin for wminput ( even if it does
anything for now ).
-You can get it here :
-`wm\_control.py <http://www.chimrod.com/downloads/wiimote/ir_control_0.py>`_
-( This code is licenced under GPL 3+ )
+You can get it here : wm_control.py_ ( This code is licenced under GPL 3+ )
+
+.. _wm_control.py: {filename}/resources/ir_control_0.py
About the code :
@@ -44,9 +44,9 @@ wminput plugin path ( on my debian this is the /usr/lib/cwiid/plugins/ )
return
def wmplugin_info():
- return [],
- [("X", wmplugin.REL | wmplugin.ABS, 1024, 0, 0, 0),
- ("Y", wmplugin.REL | wmplugin.ABS, 768, 0, 0, 0)],
+ return [],
+ [("X", wmplugin.REL | wmplugin.ABS, 1024, 0, 0, 0),
+ ("Y", wmplugin.REL | wmplugin.ABS, 768, 0, 0, 0)],
[]
We instanciate the wiimote object here and configure it in the IR mode. The