|
| ||||||||||
| Tags: c programming, coding, cursor, programming, screen |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Cursor Location
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 |
|
#2
| ||||
| ||||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Cursor Location" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cursor Jump!!! | stillarfish | Windows Update | 10 | 01-02-2012 10:49 PM |
| Cursor bug in OS X Lion | GoutamB | Operating Systems | 5 | 01-10-2011 10:30 PM |
| How to change Windows 7 cursor to game cursor | Calebh | Operating Systems | 5 | 18-01-2010 03:54 PM |
| Frozen cursor | PinkShell123 | Operating Systems | 3 | 25-11-2009 12:01 AM |
| Change the default cursor to a Wait cursor in ASP.NET | Vireshh | Software Development | 2 | 26-01-2009 04:47 PM |