mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
slight naming changes
This commit is contained in:
@@ -372,9 +372,9 @@ public class PApplet implements PConstants {
|
||||
public int pixelHeight;
|
||||
|
||||
/**
|
||||
* Keeps track of ENABLE_KEY_AUTO_REPEAT hint
|
||||
* Keeps track of ENABLE_KEY_REPEAT hint
|
||||
*/
|
||||
protected boolean isKeyAutoRepeatEnabled = false;
|
||||
protected boolean keyRepeatEnabled = false;
|
||||
|
||||
/**
|
||||
* ( begin auto-generated from mouseX.xml )
|
||||
@@ -2918,7 +2918,7 @@ public class PApplet implements PConstants {
|
||||
protected void handleKeyEvent(KeyEvent event) {
|
||||
|
||||
// Get rid of auto-repeating keys if desired and supported
|
||||
if (!isKeyAutoRepeatEnabled && event.isAutoRepeat()) return;
|
||||
if (!keyRepeatEnabled && event.isAutoRepeat()) return;
|
||||
|
||||
keyEvent = event;
|
||||
key = event.getKey();
|
||||
|
||||
@@ -517,8 +517,8 @@ public interface PConstants {
|
||||
static final int ENABLE_BUFFER_READING = 10;
|
||||
static final int DISABLE_BUFFER_READING = -10;
|
||||
|
||||
static final int DISABLE_KEY_AUTO_REPEAT = 11;
|
||||
static final int ENABLE_KEY_AUTO_REPEAT = -11;
|
||||
static final int DISABLE_KEY_REPEAT = 11;
|
||||
static final int ENABLE_KEY_REPEAT = -11;
|
||||
|
||||
static final int HINT_COUNT = 12;
|
||||
}
|
||||
|
||||
@@ -1144,10 +1144,10 @@ public class PGraphics extends PImage implements PConstants {
|
||||
showWarning("hint(ENABLE_NATIVE_FONTS) no longer supported. " +
|
||||
"Use createFont() instead.");
|
||||
}
|
||||
if (which == ENABLE_KEY_AUTO_REPEAT) {
|
||||
parent.isKeyAutoRepeatEnabled = true;
|
||||
} else if (which == DISABLE_KEY_AUTO_REPEAT) {
|
||||
parent.isKeyAutoRepeatEnabled = false;
|
||||
if (which == ENABLE_KEY_REPEAT) {
|
||||
parent.keyRepeatEnabled = true;
|
||||
} else if (which == DISABLE_KEY_REPEAT) {
|
||||
parent.keyRepeatEnabled = false;
|
||||
}
|
||||
if (which > 0) {
|
||||
hints[which] = true;
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
0243 core (3.0b5)
|
||||
|
||||
jakub
|
||||
X keyTyped() not firing with P2D and P3D
|
||||
X https://github.com/processing/processing/issues/3582
|
||||
X https://github.com/processing/processing/pull/3652
|
||||
|
||||
|
||||
known issues
|
||||
_ P2D and P3D windows behave strangely when larger than the screen size
|
||||
|
||||
Reference in New Issue
Block a user