Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kaleidos
kaleidos's Profile
2
Posts
7
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Is keyPressed() only capture on key press?
[10 Replies]
17-Jul-2012 02:37 AM
Forum:
Processing with Other Languages
I want to capture the keycode which is pressing.But it fail after I release another key.
void keyPressed() {
println("typed " + int(key) + " " + keyCode);
}
The step is below:
1. press A
2. press B
3. release B.
I want to print the keyCode equal A after release B. Is processing-js support it ? How should I write the code?
How can I import/include a Class file in Processing-js?
[5 Replies]
17-Jul-2012 02:28 AM
Forum:
Processing with Other Languages
I designed some class like CRect.But I only write it in my html file.
I want to mange this class in different file. If I want to use them, I could write "import mypackage.CRect" in Java.
Or I could write "Include "rect.h"" in C++;
But I don't know how to write it in Processing-js. Please tell me the method.Very thankful.
class CRect{
int
left
= 0;
int
top
= 0;
int
right
= 0;
int
bottom
= 0;
CRect(){}
}
«Prev
Next »
Moderate user : kaleidos
Forum