New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key problem with DELETE, BACKSPACE and CMD in P3D / P2D #3352

Closed
StanLepunK opened this Issue Jun 4, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@StanLepunK

StanLepunK commented Jun 4, 2015

OSX 10.9 / iMac 2012 / Processing 309
There is problem with DELETE, BACKSPACE and CMD in P2D and P3D.
CMD and DELETE is not detected
BACKSPACE is switching with DELETE

P305 and P309
Plus DELETE and BACKSPACE return a strange sign
RETURN, TAB return nothing

void setup() {
 size(100,100, P3D) ;
}
void draw() {}

void keyPressed() {

  if(key == CODED) println("CODED: "+keyCode); else println(key);

  if(key == DELETE) println("I'm DELETE", frameCount) ;
  // DELETE don't work in P3D & P2D, but the key event is detected
  // return a weird sign
  if(key == BACKSPACE) println("I'm BACKSPACE", frameCount) ;
  // BACKSPACE became DELETE in P3D  & P2D, but the key event is detected
  // return a weird sign

  if(key == ENTER) println("I'm ENTER", frameCount) ;
  // I don't know what's happen I'm on Mac

  if(key == RETURN) println("I'm RETURN", frameCount) ;
  // return no information when this one is coded

  if(key == TAB) println("I'm TAB", frameCount) ;
  // return no information when this one is coded

  if(key == ESC) println("I'm ESC", frameCount) ;

  if(key == CODED) {
    /*
    No problem
    if(keyCode == UP) println("I'm UP", frameCount) ;
    if(keyCode == DOWN) println("I'm DOWN", frameCount) ;
    if(keyCode == LEFT) println("I'm LEFT", frameCount) ;
    if(keyCode == RIGHT) println("I'm RIGHT", frameCount) ;
    if(keyCode == SHIFT) println("I'm SHIFT", frameCount) ;
    if(keyCode == ALT) println("I'm ALT", frameCount) ;
    if(keyCode == CONTROL) println("I'm CONTROL", frameCount) ;
    */

    if(keyCode == 157) println("I'm CMD", frameCount) ;
    // CMD don't work in P3D & P2D, but the key event is detected
  }
}
@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Jun 4, 2015

Member

Partially solved with b1e1bd5, need to look into CMD

Member

codeanticode commented Jun 4, 2015

Partially solved with b1e1bd5, need to look into CMD

@codeanticode codeanticode self-assigned this Jun 4, 2015

@codeanticode codeanticode added the opengl label Jun 4, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Jun 4, 2015

Member

CMD properly detected via 94a0bbd

Member

codeanticode commented Jun 4, 2015

CMD properly detected via 94a0bbd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment