Skip to content

Commit b28f9b6

Browse files
authored
*: Add pixel (#169)
Signed-off-by: Ce Gao <[email protected]>
1 parent f32f09a commit b28f9b6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/rprocessing/RLangPApplet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ protected void wrapProcessingVariables() {
367367
this.renjinEngine.put("displayWidth", displayWidth);
368368
this.renjinEngine.put("displayHeight", displayHeight);
369369
this.renjinEngine.put("focused", focused);
370+
this.renjinEngine.put("pixelWidth", pixelWidth);
371+
this.renjinEngine.put("pixelHeight", pixelHeight);
370372
// this.renjinEngine.put("keyPressed", keyPressed);
371373
}
372374

src/rprocessing/r/core.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,12 @@ ARC = RLangPApplet$ARC
283283

284284
SPHERE = RLangPApplet$SPHERE
285285
BOX = RLangPApplet$BOX
286+
287+
CODED = RLangPApplet$CODED
288+
UP = RLangPApplet$UP
289+
DOWN = RLangPApplet$DOWN
290+
LEFT = RLangPApplet$LEFT
291+
RIGHT = RLangPApplet$RIGHT
292+
ALT = RLangPApplet$ALT
293+
CONTROL = RLangPApplet$CONTROL
294+
SHIFT = RLangPApplet$SHIFT

0 commit comments

Comments
 (0)