name
printSticks ( )
openExample

    import procontroll.*;
    import java.io.*;

    ControllIO controll;
    ControllDevice device;
    ControllStick stick;
    ControllButton button;

    void setup(){
      size(400,400);

      controll = ControllIO.getInstance(this);

      device = controll.getDevice("Logitech RumblePad 2 USB");
      device.printSticks();
      device.setTolerance(0.05f);

      ControllSlider sliderX = device.getSlider("X-Achse");
      ControllSlider sliderY = device.getSlider("Y-Achse");

      stick = new ControllStick(sliderX,sliderY);

      button = device.getButton("Taste 0");

      fill(0);
      rectMode(CENTER);
    }

    float totalX = width/2;
    float totalY = height/2;

    void draw(){
      background(255);

      if(button.pressed()){
        fill(255,0,0);
      }else{
        fill(0);
      }

      totalX = constrain(totalX + stick.getX(),10,width-10);
      totalY = constrain(totalY + stick.getY(),10,height-10);

      rect(totalX,totalY,20,20);
    }

description
Lists the available sticks of a device in the console window. This method is usefull at startup to get the name of the different sticks.
syntax

    printSticks();

returns
None
usage
Web & Application
related
ControllDevice
ControllStick
printSliders ( )
printButtons ( )