title: Getting mouse and keyboard inputs in console C++
body: <p>How to get mouse and keyboard inputs in windows c++ console application?
  Is there any callback which we can register to get the input?</p>
  
  <p>Also using ReadConsoleInput API is a blocking call , so to keep getting inputs and do background tasks i need to use threads. Are there any non blocking APIS to get the input</p>