Jump to content
  • Advertisement
Sign in to follow this  
TIMPAN

Why does this not work ?

This topic is 4889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Why does this not work ? void BugFuncRevealMouseCoord(void){ HANDLE Ahandle2; Ahandle2 = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_SCREEN_BUFFER_INFO CsbiVarb; GetConsoleScreenBufferInfo(Ahandle2,&CsbiVarb); cout << "X:" << CsbiVarb.dwCursorPosition.X << endl; cout << "Y:" << CsbiVarb.dwCursorPosition.Y << endl; } I run it in a while ... and clear the screen everytime I display it ...

Share this post


Link to post
Share on other sites
Advertisement
Nope did not work ... just prints lots of zeros ,,, what I need is the coords of the mouse on a Win32 Console Application. But hey thanks anyway ;-)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!