Block Input

Dec 17, 2009 at 3:27am
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?
Dec 17, 2009 at 11:54am
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.
Dec 17, 2009 at 11:31pm
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 Dec 18, 2009 at 12:10am
Dec 18, 2009 at 12:29am
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.
Dec 18, 2009 at 4:24pm
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?
Dec 18, 2009 at 4:34pm
(n|pd)curses allow you to do all the cool looking things you want with the console
Dec 18, 2009 at 4:35pm
what do you mean by "cool looking things"?
Dec 18, 2009 at 5:01pm
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.