ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 320 of file tncon.cpp.

Referenced by TScroller::ScrollBack().

                  {
    HANDLE hConsole = GetStdHandle(STD_INPUT_HANDLE);
    INPUT_RECORD InputRecord;
    BOOL done = FALSE;

    while (!done) {
        DWORD dwInput;
        WaitForSingleObject( hConsole, INFINITE );
        if (!ReadConsoleInput(hConsole, &InputRecord, 1, &dwInput)){
            done = TRUE;
            continue;
        }
        if (InputRecord.EventType == KEY_EVENT &&
            InputRecord.Event.KeyEvent.bKeyDown ) {
            // Why not just return the key code?  (Paul Brannan 12/5/98)
            return InputRecord.Event.KeyEvent.wVirtualKeyCode;
        } else if(InputRecord.EventType == MOUSE_EVENT) {
            if(!InputRecord.Event.MouseEvent.dwEventFlags) {
                // Put the mouse's X and Y coords back into the input buffer
                WriteConsoleInput(hConsole, &InputRecord, 1, &dwInput);
                return SC_MOUSE;
            }
        }
    }
    return SC_ESC;
}

Generated on Sat May 26 2012 04:41:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.