In Search Of A Better Controller : GamePad control with Processing

Back at university, that’s why been quite busy . But, still here’s something new I have come out with and feel interesting to share. This post will enable you to use and control (maybe a program or a bot) with a gamePad using Processing.

 Here’s a list of pre-requisites :

FYI : As far as I know, no USB joystick/gamepad will have a serial interface, simply because the USB specification already defines a joystick interface, which is generally preferred. So, the problem is that you can’t communicate with as it doesn’t appear to as a serial COM port (for e.g. if you want to do serial communication using puTTY, the device must appear to a COM port!)

The proCONTROLL library allows Processing to communicate with control devices like joysticks, joypads and also keyboards and mice. Let’s check out a basic programme by which we can translate and rotate a sphere using the proControll library, openGL library (by default with preocessing 1.5.1 or above), a gamepad and of course a PC.

Here’s a zipped copy of the source code. Click here to download.
Watch the video to enjoy some of the glimpses of the game pad control.

This work is under GPLv3 license. Images and videos can be distributed and shared. But commercial rights rests with Abhishek Mukhopadhyay (license IN492647E).

One thought on “In Search Of A Better Controller : GamePad control with Processing

Leave a comment