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

Tags: , , , ,

Sponsored Links


Cursor Location

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-02-2011
Member
 
Join Date: Feb 2011
Posts: 1
Cursor Location

Sponsored Links
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

Reply With Quote
  #2  
Old 19-02-2011
JAMES_911's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,664
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
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 03:34 AM.