input.keyboardEvents.connect(new Keyboard.KeySlot() {
public void onEmit (Keyboard.KeyEvent event) {
switch (event.key) {
case ESCAPE:
if (event.down) displayMenu();
break;
case D:
Layer.DEBUG_RECTS = event.down;
if (event.down && event.isShiftDown()) {
rootLayer.debugPrint(log);
}
break;
}
}
});
// show debug rectangles when D key is pressed; dump scene graph on shift-D
plat.input().keyboardEvents.collect(Keyboard.isKey(Key.D)).connect(event -> {
Layer.DEBUG_RECTS = event.down;
if (event.down && event.isShiftDown()) {
rootLayer.debugPrint(plat.log());
}
});
--
---
You received this message because you are subscribed to the Google Groups "PlayN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playn+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.