From 37d4efcd01880eafefac25df9d40491458a61d26 Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 23 Mar 2007 14:35:32 +0000 Subject: [PATCH] make ENTER et al into char instead of int constants --- core/src/processing/core/PConstants.java | 15 +++++++++------ core/todo.txt | 8 +++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/core/src/processing/core/PConstants.java b/core/src/processing/core/PConstants.java index 81bfe694f..4946d600b 100644 --- a/core/src/processing/core/PConstants.java +++ b/core/src/processing/core/PConstants.java @@ -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; diff --git a/core/todo.txt b/core/todo.txt index e59c2dd33..81971272e 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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