noCursor() with cursor() in P3D doesnt working...

void setup() { size(100, 100, P3D); } void draw() { if (mouseX < 50) { noCursor(); } else { cursor(HAND); } }

Answers

  • edited October 2017 Answer ✓
    void setup() {
      size(500, 500, P3D);
    }
    void draw() {
      if (mouseX < 50) {
        noCursor();   // switch cursor off
      } else {
        cursor();   // switch cursor on
        cursor(HAND); // set cursor 
      }
    }
    
  • Chrisir THX :o

  • Answer ✓

    ;-)

Sign In or Register to comment.