Skip to content
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

Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 #824

Open
bugreporter0 opened this issue Feb 26, 2024 · 2 comments

Comments

@bugreporter0
Copy link

bugreporter0 commented Feb 26, 2024

Description

Expected Behavior

"< was pressed" should be written in the console

Current Behavior

keyPressed detects that a character was typed but not which one when "<" is typed

Steps to Reproduce

Works:

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

void draw()
{
}

void keyPressed()
{
  if(key == '<')
    println("< was pressed");
}

Doesn't work:

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

void draw()
{
}

void keyPressed()
{
  if(key == '<')
    println("< was pressed");
}

Your Environment

  • Processing version: 4.3
  • Operating System and OS version: both windows (10, 11) and Ubuntu 22.04
  • Other information:

Possible Causes / Solutions

Maybe some characters have been forgotten in the keyPressed P2D API in Processing 4 and above because it worked in the last Processing 3 version, I've checked

@bugreporter0 bugreporter0 changed the title gfd Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 Feb 26, 2024
@bugreporter0 bugreporter0 reopened this Feb 26, 2024
@bugreporter0 bugreporter0 reopened this Feb 26, 2024
@bugreporter0
Copy link
Author

I'm sorry for the weird behavior, I'm new to GitHub and I don't know English very well

@Hellcat554
Copy link

Hellcat554 commented Feb 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants