-
Cursor Location
Hey there.
I'm coding in C++.
I'm just wondering if there is anyway of detecting whether the cursor is within a certain randomly determined part of the screen?
For example, with the game "Squares". Is it possible to code the ending of the game when your square at the cursor enters the boundaries of another randomly moving square?
Thank you for your help :)
GTG
-
Re: Cursor Location
You can use I/O Kit to read the pixels for the current cursor. For that you will need to check IOFramebufferShared.h and IOGraphicsLib.h for some of the relevant API. Hope that helps
Page generated in 1,713,574,514.35923 seconds with 11 queries