-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add keyboard event #148
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
feat: add keyboard event #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
@@ -32,6 +32,8 @@ public BuiltinApplet() { | |||
Session session = | |||
new SessionBuilder().withDefaultPackages().setPackageLoader(packageLoader).build(); | |||
this.renjinEngine = new RenjinScriptEngineFactory().getScriptEngine(session); | |||
this.renjinEngine.put("key", "0"); | |||
this.renjinEngine.put("keyCode", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe https://github.com/hawkingrei/Processing.R/blob/0edbae2b4e0c1da39cb77d8fd8c54e8fffb27e7d/src/rprocessing/RLangPApplet.java#L133 is a better place to place these put
statements.
fix it |
LGTM |
I have been trying to understand whether or not the input function mappings in this commit (keyPressed, mouseClicked, etc.) are implemented, and if so how to use them. Is there a way to use |
I am afraid not because of #170 |
Hi ~
I add keyboard event, you can test it by the following code.