Replace Mouse Pointer?

This is a discussion on Replace Mouse Pointer? within the Game Programming forums, part of the General Programming Boards category; In SDL, I am trying to create a custom mouse pointer. The obvious solution is to just draw an image ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    7

    Replace Mouse Pointer?

    In SDL, I am trying to create a custom mouse pointer. The obvious solution is to just draw an image at the location of the default mouse and cover it up, but is there any way to get SDL to still use the mouse but not draw it or draw my image instead?

  2. #2
    Registered User pronecracker's Avatar
    Join Date
    Oct 2006
    Location
    netherlands
    Posts
    158
    If you're running Windows, have you already tried ShowCursor(FALSE)?
    This might be a bit of a noob answer, but I don't know if SDL just uses the windows cursor or hides it and draws an own cursor that you want to replace.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    7
    No, I hadn't tried that. I haven't really found anything on this.
    It is clear though that SDL is drawing a different cursor than windows.

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    7
    DOH!
    Pretty sure I should use SDL_ShowCursor(0);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems passing a file pointer to functions
    By smitchell in forum C Programming
    Replies: 4
    Last Post: 09-30-2008, 03:29 PM
  2. Compiler "Warnings"
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 04-24-2005, 02:09 PM
  3. Making a mouse hover button, API style
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2004, 07:17 AM
  4. Game Design Topic #2 - Keyboard or Mouse?
    By TechWins in forum Game Programming
    Replies: 4
    Last Post: 10-08-2002, 04:34 PM
  5. Mouse in 800x600 24Bit Mode?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 11-11-2001, 01:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21