make ENTER et al into char instead of int constants

This commit is contained in:
benfry
2007-03-23 14:35:32 +00:00
parent edcd4a555a
commit 37d4efcd01
2 changed files with 14 additions and 9 deletions

View File

@@ -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;

View File

@@ -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