Results 1 to 2 of 2

Thread: Cursor Location

  1. #1
    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
    GTG

  2. #2
    Join Date
    Dec 2007
    Posts
    1,742

    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

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •