I'm a begginner programmer running a windows XP with Dev-C++. Would it be possible to know the syntax to disabling mouse and keyboard input? (I want to disable the mouse first, then later both the mouse and keyboard.) Google's pointed me towards blockinput(), but I can't get that to work.

Recommended Answers

All 2 Replies

Using win32 api gdi functions you could disable the mouse by just hiding it then ignoring all mouse clicks. For keyboard, ignore the keyup and keydown events. Note that these are not standard c or c++, but win32 api functions. There is no way to do it with standard c/c++.

That's a bit beyond my ability right now. Thanks for answering though!

QAC

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.