title: Detect mouse scroll in console application
body: <p>I want to write a C++ program which will act as a feeder of a virtual joystick <a href="http://vjoystick.sourceforge.net/site/" rel="nofollow">http://vjoystick.sourceforge.net/site/</a>.
  I now successfully use the mouse cursor position to feed X and Y axis. Now I want to use the mouse wheel to feed the Z axis. But I tried of finding the way to detect the scroll. Can anyone suggest me on this? I use MinGW compiler.</p>
  
  <p>By the way, this is my code : <a href="http://pastebin.com/WuFV8X3h" rel="nofollow">http://pastebin.com/WuFV8X3h</a></p>