Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links

Cursor Location

Software Development

Thread Tools Search this Thread
Old 17-02-2011
Join Date: Feb 2011
Posts: 1
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

Reply With Quote
Old 19-02-2011
Join Date: Dec 2007
Posts: 1,741
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
Reply With Quote

  TechArena Community > Software > Software Development
Tags: , , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Cursor Location"
Thread Thread Starter Forum Replies Last Post
How to change Windows 7 cursor to game cursor Calebh Operating Systems 5 18-01-2010 03:54 PM
Cursor concept of the SQL rooki Software Development 3 08-12-2009 01:44 PM
Frozen cursor PinkShell123 Operating Systems 3 25-11-2009 12:01 AM
Cursor pausing button Windows Software 3 16-09-2009 10:29 AM
Change the default cursor to a Wait cursor in ASP.NET Vireshh Software Development 2 26-01-2009 04:47 PM

All times are GMT +5.5. The time now is 03:25 PM.