graphics function to tell the postiton of the pointer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • goelvivek
    New Member
    • Dec 2006
    • 26

    graphics function to tell the postiton of the pointer

    is their is any graphics function that will tell us the postiton of the pointer at that time i now about getx() but it is giving only 0 in all the condition
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Probably depends on the graphics library you are using. Did you check the documentation? What library are you using?

    Comment

    • goelvivek
      New Member
      • Dec 2006
      • 26

      #3
      Originally posted by sicarie
      Probably depends on the graphics library you are using. Did you check the documentation? What library are you using?
      does no one has its code

      Comment

      • Cucumber
        New Member
        • Sep 2007
        • 90

        #4
        If you are talking about where is the mouse cursor and you are programming in MSDOS, you need yo look into the software interruption 0x33, or INT H033, that means you need to embed some assembler code inside your C code.
        If you are using Win32, you use GetCursorPos( ).

        If you are talking about the current text position (where the blinking thing is), I think you need to use the software interruption 0x10 in MSDOS, or look into the Caret set of functions if using Win32.

        Comment

        Working...