title: How can I make C++ press spacebar?
body: <p>So I'm trying to create this little Bunnyhop hack using C++, I've got everything done except this last part, which is what I need help for! :)
  Here is my code: </p>
  
  <pre><code>if (m_fFlags == FL_ONGROUND) {
      // here is where I want to make it press space!
  }
  </code></pre>
  
  <p>This is a short question, thanks! :)</p>
  
  <p>EDIT: What im looking for is something that does kind of the same thing as this:</p>
  
  <pre><code> mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
  </code></pre>
  
  <p>but with space bar!</p>