/* * TinyBlocks - tb_input_lib.h * Library tinyblocks-input: blocos de Sensores (mouse, teclado, toque, * acelerometro, giroscopio e cronometro). Le o estado do core * (tinyblocks/tb_input.h), alimentado por quem mostra o palco. */ #ifndef TINYBLOCKS_INPUT_LIB_H #define TINYBLOCKS_INPUT_LIB_H #include TB_API const TinyBlocks_LibraryDescriptor* tb_input_get_library(void); /* Codigo TB_KEY_* de um nome de tecla ("espaço", "seta para cima", "a", "7", "enter", "space", "up"...); "qualquer"/"any" = -1; 0 = desconhecida */ TB_API int tb_input_key_from_name(const char* name); /* Nome em portugues de um TB_KEY_* ("" se desconhecido) */ TB_API const char* tb_input_key_name(int key); #endif /* TINYBLOCKS_INPUT_LIB_H */