Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

CP5 Slider: Android Issue

$
0
0

Hello, i'd like to use Control P5 Sliders in an android-project. But unfortunately, the sliders behave different than in Java mode. On the Android-phone, you have to click one slider twice to change the value. This is bad, because the first click can affect the state of the slider which was selected before. Any idea how to solve this problem? Thanks!

import controlP5.*;

ControlP5 cp5;

void setup(){
  fullScreen();
  cp5 = new ControlP5(this);

  cp5.addSlider("ONE")
  .setPosition(50,100)
  .setSize(width-100, 50);

  cp5.addSlider("TWO")
  .setPosition(50,200)
  .setSize(width-100, 50);
}

void draw(){
}

Viewing all articles
Browse latest Browse all 941

Trending Articles