1
0
Kaleidoscope/x86/cores/virtual/virtual_io.h
2018-08-16 18:00:58 -07:00

21 lines
691 B
C++

#include <stdbool.h>
#undef min
#undef max
#include <string>
// Returns TRUE if successful, FALSE if not
bool initVirtualInput(int argc, char* argv[]);
std::string getLineOfInput(bool anythingHeld);
bool isInteractive(void);
void printHelp(void);
unsigned currentCycle(void); // current cycle number, first cycle is 0
void nextCycle(void); // should only be used by cores/virtual/main.cpp, to increment currentCycle()
void logUSBEvent(std::string descrip, void* data, int length);
void logUSBEvent_keyboard(std::string descrip); // assumes 'descrip' uniquely describes the raw data too
void logLEDStates(std::string descrip); // assumes 'descrip' uniquely describes the LED states