linux - keypad - arrow keys

edited November 2013 in Using Processing

Anyone able to point me for a solution to issue I have running under linux problem is that the arrow keys on keypad seem to be "ignored" in PDE. The home, end and PgUp and Pg down keys work fine

Answers

  • you mean something like this does not work?

    color fillVal = color(126);
    
    void draw() {
      fill(fillVal);
      rect(25, 25, 50, 50);
    }
    
    void keyPressed() {
      if (key == CODED) {
        if (keyCode == UP) {
          fillVal = 255;
        } else if (keyCode == DOWN) {
          fillVal = 0;
        } 
      } else {
        fillVal = 126;
      }
    }
    

    if you try it like this?

    color fillVal = color(126);
    
    void draw() {
      fill(fillVal);
      rect(25, 25, 50, 50);
    }
    
    void keyPressed() {
      if (key == CODED) {
        if (keyCode == 38) {
          fillVal = 255;
        } else if (keyCode == 40) {
          fillVal = 0;
        } 
      } else {
        fillVal = 126;
      }
    }
    
  • I think the problem is in the PDE, the editor itself.

  • yes - issue is in editor itself - its very difficult for me to code with any sort of speed without the arrow keys !

  • Arrow keys work alright in my Lubuntu 13.04 box + OpenJDK 7! (*)

Sign In or Register to comment.