Mouse Interfacing In Turbo C++
Turbo C++ ... that takes me back. Here is what I am expecting is happening and why that delay()
is needed.
What you have here is a polling loop. Without the delay()
, you are going to flood your xx[] and yy[] buffers when button is 1, and probably overflow them too. Remember, the computer can execute that loop a great many times while you have that mouse button pressed. The delay()
evens that out somewhat.
Turbo C MS-DOS BOX not responding to Mouse Click
The Solution is just 3 Steps:
Step 1 : Press Ctrl + Alt + F
Step 2 : Press Left Arrow (To move to the 3 Lines )
Step 3 : Press Enter on Repaint Desktop
You gotcha !
Related Topics
Treating Memory Returned by Operator New(Sizeof(T) * N) as an Array
Convert a Single Color with Cvtcolor
Do I Need to Protect Read Access to an Stl Container in a Multithreading Environment
Can C++ Have Code in the Global Scope
How to Pass a Vector of Strings to Execv
How to Provider User with Autocomplete Suggestions for Given Boost::Spirit Grammar
Is Std::String Size() a O(1) Operation
Initializer List Not Working with Vector in Visual Studio 2012
How to Cast a Derived Class to a Private Base Class, Using C-Style Cast
How to Enforce Copy Elision, Why It Won't Work with Deleted Copy Constructor
Boost Zip_Iterator and Std::Sort
In C++ What Causes an Assignment to Evaluate as True or False When Used in a Control Structure
For Purposes of Ordering, Is Atomic Read-Modify-Write One Operation or Two
How to Avoid Static Member Function When Using Gsl with C++
Must New Always Be Followed by Delete