slight naming changes

This commit is contained in:
Ben Fry
2015-08-17 20:02:42 -04:00
parent e36b662ec9
commit 3dd19310bb
4 changed files with 14 additions and 9 deletions
+3 -3
View File
@@ -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();
+2 -2
View File
@@ -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;
}
+4 -4
View File
@@ -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;
+5
View File
@@ -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