Thread: Cursor/Mouse Position and Type - Platform independent?

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    10

    Cursor/Mouse Position and Type - Platform independent?

    Hello,

    I originally posted this into the C programming forum, but i do not think anyone knows how to do it just using C. So, i am here.. in the c++ programming forum hoping to have better luck.

    I want to make a program that outputs Pointer(mouse) position and what type it is (arrow, text[I], moving cross, etc...)

    What i have been seeing everything is platform dependent, but i would like to make this program run on linux and windows. But, if i did have to choose one, i would pick linux.

    I have looked a little bit into xlib, but it is a little confusing and i can not figure out how to get the "type" of cursor.

    Any help would be much appreciated.

    --redcrusher

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    ncurses. There are ports for nearly all linux/unix systems, and windows. this would be your best bet for a cross-platform, portable solution.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer(Cursor) Position and Type - Platform Independent?
    By redcrusher in forum C Programming
    Replies: 0
    Last Post: 12-23-2011, 01:06 AM
  2. Platform independent paths
    By zacs7 in forum C Programming
    Replies: 6
    Last Post: 11-22-2008, 09:51 AM
  3. Getting the position of the mouse cursor
    By Mavix in forum Game Programming
    Replies: 5
    Last Post: 12-27-2007, 04:02 PM
  4. Platform independent C code
    By Roaring_Tiger in forum C Programming
    Replies: 2
    Last Post: 03-04-2005, 01:32 PM
  5. Platform Independent
    By mikedelo in forum C Programming
    Replies: 8
    Last Post: 10-22-2001, 05:08 AM