예제 #1
0
 /**
  * C++ callback function.
  *
  * <p>Notifies the event listener that a key was pressed.
  */
 public void keyPressed(int keyCode) {
   try {
     listener.keyPressed(keyCode);
   } catch (Error e) {
     e.printStackTrace();
   }
 }