Block Input

When I want to block input from the user I usually use:

BlockInput(true);

It blocks input from the mouse AND the keyboard. Is there a way to block input only from the keyboard and leave the mouse free to move?
how does BlockInput work? i mean what header does it use? is it windows command? ncurses? you should be able to look it up and find references to the answers you seek.
BlockInput uses a C header.
#include <winable.h>

whats ncurses?


you register this command true or false and it blocks all keyboard and mouse input. There is a way around it though. haha after it activates you can press control alt delete and open task manager and it will allow mouse input.
Last edited on
ncurses is a wonderful UNIX library (PDCurses on windows) for terminal-emulator (e.g. xterm) I/O.

And that's not a standard C header. A standard C header is stdlib.h, or stdio.h. What you've got there is a windows header.
haha... im still new to this.. haha thanks :)

most advanced stuff i know is string member function and im still working on that ha XD


what uses can ncurses give me?
(n|pd)curses allow you to do all the cool looking things you want with the console
what do you mean by "cool looking things"?
Text with many colors and effects ( blink etc )
Draw windows and boxes
Get input with only a given number of characters
Read input as password ( display * instead of characters )
...
Here you can get an idea: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
It's a cool library for console-based programs
Topic archived. No new replies allowed.