# Utilisation manette en processing

**URL:** <https://discourse.processing.org/t/utilisation-manette-en-processing/17481>\
**Category:** Libraries\
**Created:** [January 31, 2020, 5:50pm UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481 "2020-01-31T17:50:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![theclimbhacker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/theclimbhacker/32/7969_2.png) [@theclimbhacker](https://discourse.processing.org/u/theclimbhacker)\
**Post date:** [January 31, 2020, 5:50pm UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481/1 "2020-01-31T17:50:38Z")

</div>

Bonjour,

Je cherche a utilisé une manette (Gamecube dans mon cas) pour faire bouger un personnage dans un jeu.

J’ai essayé de détecter les boutons de la manette avec la sous fonction `keyCode`, pensant que les boutons réagiraient comme avec mon clavier mais rien ne se passe.

J’ai cherché sur internet et regardé les librairies mais je n’ai rien trouvé qui puisse répondre a mon problème.

Si quelqu’un peut m’aider se serait cool.

Merci

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 2, 2020, 2:45pm UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481/2 "2020-02-02T14:45:37Z")

</div>

Anglais s‘il vous plait

---

<div class="post-metadata">

**Author:** ![theclimbhacker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/theclimbhacker/32/7969_2.png) [@theclimbhacker](https://discourse.processing.org/u/theclimbhacker)\
**Post date:** [February 2, 2020, 2:59pm UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481/3 "2020-02-02T14:59:13Z")

</div>

I’m looking to use a controller (Gamecube in my case) to move a character in a game.

I tried to detect the buttons on the controller with the keyCode function, thinking that the buttons would react as with my keyboard but nothing happens.

I searched the internet and looked at the bookstores but I couldn’t find anything that could answer my problem.

If anyone can help me it would be cool.

Thank you

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 2, 2020, 7:15pm UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481/4 "2020-02-02T19:15:12Z")

</div>

Bonjour,

My French is rusty so will respond in English.

It may not be plug and play.

You may have to build an interface and translate to something you can use to communicate with Processing such as serial data.

> **[Gamecube Controller Serial Data Interface?](https://forums.parallax.com/discussion/113656/gamecube-controller-serial-data-interface)**
>
> Hello, I'm wondering if this project is possible & looking for tips on getting started.

  
[https://processing.org/reference/libraries/serial/index.html](https://processing.org/reference/libraries/serial/index.html)

’ 🙂 ’

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 19, 2020, 6:06am UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481/5 "2020-02-19T06:06:30Z")

</div>

Une option consiste à utiliser un pilote ou une application tierce pour mapper les touches du contrôleur GameCube aux touches du clavier. Ensuite, votre esquisse de traitement répondra comme s’il s’agissait d’un clavier normal.

Une autre option consiste à essayer une bibliothèque telle que GameControlPlus. Cependant, je ne sais pas si cela fonctionnera avec les contrôleurs GameCube.

[http://lagers.org.uk/gamecontrol/](http://lagers.org.uk/gamecontrol/)
