Thread: blinking cursor

  1. #1
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655

    blinking cursor

    ok, im in the process of making a game, heres the deal, we've got our game working in a skeleton like state, but the blinking cursor in the corner of the screen isnt going away.

    1st we draw a terrain to the screen, then our lil space ship comes up, and you use the arrow keys to move in it a specific direction. but the cursor is still in the top corner, blinking away! is there anything that will get rid of that and allow the game to run like normal???
    guns dont kill people, abortion clinics kill people.

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    This is with ermh....a console app right? It's in the MSDN Console
    Application SDK somewhere

  3. #3
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    thats the thing though, what am i supposed to search for, when i was on msdn i didnt understand any of the cursor console app stuff
    guns dont kill people, abortion clinics kill people.

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Oke, I'm downloading the (135MB pfff) SDK to look for it.

  5. #5
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    Code:
    void HideCursor()
    {
    	CONSOLE_CURSOR_INFO lpCursor;	
    	lpCursor.bVisible = 0;
    	lpCursor.dwSize = 20;
    	SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&lpCursor);
    }
    Will hide the cursor... and
    Code:
    SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), ENABLE_LINE_INPUT);
    Will disable mouse input.

    Remember to #include <windows.h>

  6. #6
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    OMG you guys ROCK!!! Thanks, curious though, did you find this stuff on msdn.microsoft?
    guns dont kill people, abortion clinics kill people.

  7. #7
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    I can't remember... MSDN has never helped me much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Restoring the Cursor
    By leojose in forum Windows Programming
    Replies: 8
    Last Post: 06-09-2005, 12:29 PM
  2. Custom Animated Cursor
    By willc0de4food in forum Windows Programming
    Replies: 3
    Last Post: 05-13-2005, 10:05 PM
  3. Darned Blinking Cursor
    By VOX in forum C Programming
    Replies: 18
    Last Post: 11-23-2004, 06:36 PM
  4. cursor remains in openGL fullscreen
    By Ken Fitlike in forum Game Programming
    Replies: 5
    Last Post: 03-14-2002, 08:52 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