Plusieurs Wiimotes sur Windows XP

Ce wiki a été archivé en 2018.

Le nouveau wiki se trouve à: ressources.labomedia.org

Les fonctionnalités sont désactivées: vous pouvez faire une recherche sur Google site:https://wiki.labomedia.org et découvrir La Labomedia.

De Centre de Ressources Numériques - Labomedia
Aller à : navigation, rechercher

Pour utiliser plusieurs (4) Wiimotes sur Windows XP (affection de touches de clavier aux boutons // pointage Infra-Rouge non testé) :


  • Avoir une interface BlueTooth (La clef EMTEC EKCOB110 fonctionne sous Ubuntu et XP nativement).


Ouvrir le dossier "Emplacement BlueTooth" créé sur le bureau.

Lancer "recherche de dispositif" après avoir appuyé sur les touches 1+2 de la Wiimote. (effectuer la démarche avec toutes les Wiimotes)


Utiliser le script ci-dessous après en avoir fait un fichier de la forme monscript.PIE: (note: ce script présentant tout de même le désavantage de monopoliser tout le clavier, nous avons opté depuis pour un script qui utilise l'OSC. Voir en bas de page le patch pour Pure Data)

 // Crée par le Labomedia (www.labomedia.net) sur la base d'un script de
 // Marc-Andre Larouche
 // marclar83@gmail.com
 //
 //
 // LED P1 / P2
 Wiimote1.LED1 = true;
 Wiimote1.LED2 = Wiimote1.HasClassic;
 Wiimote1.LED3 = false;
 Wiimote1.LED4 = false;
 // LED P3 / P4
 Wiimote2.LED1 = false;
 Wiimote2.LED2 = false;
 Wiimote2.LED3 = true;
 Wiimote2.LED4 = Wiimote2.HasClassic;
 //
 //
 // Wiimote 1
 //
 // Controls
  Key.A = Wiimote.Down;
  Key.Z = Wiimote.Right;
  Key.E = Wiimote.Left;
  Key.R = Wiimote.Up;
 // Emulator keys
  Key.T = Wiimote.Plus;
  Key.Y = Wiimote.Minus;
  Key.U = Wiimote.Home;
 // Actions   
  Key.I = Wiimote.One;
  Key.O = Wiimote.Two;
  Key.P = Wiimote.A;
  Key.N = Wiimote.B;
 //
 // Wiimote 2
 //
 // Controls
  Key.Q = Wiimote2.Down;
  Key.S = Wiimote2.Right;
  Key.D = Wiimote2.Left;
  Key.F = Wiimote2.Up;
 // Emulator keys
  Key.G = Wiimote2.Plus;
  Key.H = Wiimote2.Minus;
  Key.J = Wiimote2.Home;
 // Actions   
  Key.K = Wiimote2.One;
  Key.L = Wiimote2.Two;
  Key.M = Wiimote2.A;
  Key.P = Wiimote2.B;
 //
 // Wiimote 3
 //
 // Controls
  Key.A = Wiimote3.Down;
  Key.Z = Wiimote3.Right;
  Key.E = Wiimote3.Left;
  Key.R = Wiimote3.Up;
 // Emulator keys
  Key.T = Wiimote3.Plus;
  Key.Y = Wiimote3.Minus;
  Key.U = Wiimote3.Home;
 // Actions   
  Key.I = Wiimote3.One;
  Key.O = Wiimote3.Two;
  Key.P = Wiimote3.A;
  Key.N = Wiimote3.B;
 //
 // Wiimote 4
 //
 // Controls
  Key.Q = Wiimote4.Down;
  Key.S = Wiimote4.Right;
  Key.D = Wiimote4.Left;
  Key.F = Wiimote4.Up;
 // Emulator keys
  Key.G = Wiimote4.Plus;
  Key.H = Wiimote4.Minus;
  Key.J = Wiimote4.Home;
 // Actions   
  Key.K = Wiimote4.One;
  Key.L = Wiimote4.Two;
  Key.M = Wiimote4.A;
  Key.P = Wiimote4.B;
 //
 //
 //
 // Faire préceder les trèmes ci-dessous de Key. pour les voir associés
 // aux touches de claviers voulus :
 //
 // "GlovePIE"    --> "Clavier"
 //
 // Escape        --> Echap
 // F1 … F12      --> F1 à F12
 // PrintScreen   --> Impr.Ecran
 // SysReq        --> Impr.Ecran
 // Pause         --> Pause
 // Break         --> ?
 // ScrollLock    --> Arrêt défil
 // Console       --> ²
 // One           --> &
 // Two           --> é
 // Three         --> "
 // Four          --> '
 // Five          --> (
 // Six           --> -
 // Seven         --> è
 // Eight         --> _
 // Nine          --> ç
 // Zero          --> à
 // Minus         --> )
 // Equals        --> =
 // Backslash     --> \
 // Backspace     --> DEL
 // A … Z         --> A à Z
 // Tab           --> Tabulation
 // CapsLock      --> VerrMAJ
 // RightShift    --> Shift droit
 // LeftShift     --> Shift gauche
 // Shift         --> Shift (droite ou gauche)
 // RightCtrl     --> Control droit
 // LeftCtrl      --> Control gauche
 // Ctrl          --> Control (droite ou gauche)
 // RightWindows  --> Touche Windows droite
 // LeftWindows   --> Touche Windows gauche
 // RightAlt      --> ALT droite
 // LeftAlt       --> ALT gauche
 // Space         --> Espace
 // AppMenu       --> Menu contextuel
 // Home          --> Début
 // End           --> Fin
 // PageUp        --> PageUp
 // PageDown      --> PageDown
 // Insert        --> Inser
 // Delete        --> Supp
 // Up            --> Haut
 // Down          --> Bas
 // Left          --> Gauche
 // Right         --> Droite
 // NumLock       --> VerrNum
 // Divide        --> /
 // Multiply      --> *
 // NumPadMinus   --> -
 // NumPadPlus    --> +
 // NumPadEnter   --> Entr
 // NumPadDot     --> .
 // Semicolon     --> m
 // Apostrophe    --> ù
 // Enter         --> Entrée
 // LeftBracket   --> ^
 // RightBracket  --> $
 // Comma         --> ;
 // Dot           --> .
 // Slash         --> !


  • Pour faire reconnaitre une Wiimote par Ubuntu : Tuto ici.