Wiki

Clone wiki

jsixaxis / UserGuide

User Guide

How to use

First of all you have to initialize the library by using the static factory method JSixAxis.initialize().

You can then query the returned, initialized library for connected devices as in the following example:

import pad.JSixAxis;
import pad.Device;
import scala.collection.immutable.List;

public class HowTo {
    public static void main(String[] args) {
        JSixAxis jsixaxis = JSixAxis.initialize();
        
        List<Device> devices = jsixaxis.discoverDevices();
        
        for (Device device : devices) {
            System.out.println("Discovered device " + device);
        }
    }
}

That's it for now. Not that there would be much. In fact, you don't even get a distinct library .jar at the moment. So this User Guide is somewhat theoretical. You can poke it already, though. Or peek at it.

However, once the library is in a usable state (denoted by an announced release) this User Guide will indeed serve as the main documentation.

Updated