SDL_ShowCursor question

This is a discussion on SDL_ShowCursor question within the Game Programming forums, part of the General Programming Boards category; i am using the SDL and trying to hide the cursor, the line SDL_ShowCursor(SDL_DISABLE); is saying that SDL_DISABLE is not ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    SDL_ShowCursor question

    i am using the SDL and trying to hide the cursor,


    the line SDL_ShowCursor(SDL_DISABLE); is saying that SDL_DISABLE is not defined, the documentation claims otherwise, anyone on here have any experience with SDL_ShowCursor? Thanks in advance.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    the results of an experiment

    -1 seems to be set the cursor to the <-> cursor

    0 changes the current setting (if it is on then it'll be off and vice-versa)

    1 sets it to on

    2 sets it to off

    but i'm still wondering why SDL_DISABLE isn't defined

  3. #3
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    It should be defined in SDL_events.h

Popular pages Recent additions subscribe to a feed

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