engine.c
// Called once when key is pressed (key repeat causes this to be called multiple times)
Called once when key is pressed (key repeat causes this to be called multiple times)
Called once when key is pressed ( key repeat causes this to be called multiple times )
void on_key(const char *key) {
  char method[64];
  sprintf(method, "on_key_press(\"%s\")", key);
  mrb_load_string(mrb, method); 
}
void on_key ( const char * key ) { char method [ 64 ] ; sprintf ( method , " \" \" " , key ) ; mrb_load_string ( mrb , method ) ; }
Called once when key is pressed (key repeat causes this to be called multiple times)
Called once when key is pressed ( key repeat causes this to be called multiple times )
// printf("on_key: %s\n", key); // call the on_key_press method defined in game.rb