mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
make ENTER et al into char instead of int constants
This commit is contained in:
@@ -259,12 +259,15 @@ public interface PConstants {
|
||||
// the esoteric java KeyEvent api and of virtual keys
|
||||
|
||||
// both key and keyCode will equal these values
|
||||
static final int BACKSPACE = 8;
|
||||
static final int TAB = 9;
|
||||
static final int ENTER = 10;
|
||||
static final int RETURN = 13;
|
||||
static final int ESC = 27;
|
||||
static final int DELETE = 127;
|
||||
// for 0125, these were changed to 'char' values, because they
|
||||
// can be upgraded to ints automatically by Java, but having them
|
||||
// as ints prevented split(blah, TAB) from working
|
||||
static final char BACKSPACE = 8;
|
||||
static final char TAB = 9;
|
||||
static final char ENTER = 10;
|
||||
static final char RETURN = 13;
|
||||
static final char ESC = 27;
|
||||
static final char DELETE = 127;
|
||||
|
||||
// i.e. if ((key == CODED) && (keyCode == UP))
|
||||
static final int CODED = 0xffff;
|
||||
|
||||
@@ -43,9 +43,11 @@ X remove print(array) since it's silly?
|
||||
[1] "tomato"
|
||||
[2] "apple"
|
||||
|
||||
_ updatePixels ref is wrong
|
||||
_ has x/y/w/h version
|
||||
_ the reference is also cut off
|
||||
0125p2
|
||||
X updatePixels ref is wrong
|
||||
X has x/y/w/h version
|
||||
X the reference is also cut off
|
||||
X make ENTER, TAB, etc all into char values (instead of int)
|
||||
|
||||
_ copy() should automatically call updatePixels()
|
||||
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1173394373
|
||||
|
||||
Reference in New Issue
Block a user