[ros-bugs] [Bug 3747] New: A basic _kbhit() implementation

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Sat Sep 27 11:38:30 CEST 2008


http://www.reactos.org/bugzilla/show_bug.cgi?id=3747

           Summary: A basic _kbhit() implementation
           Product: ReactOS
           Version: TRUNK
          Platform: QEmu
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Patches
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: rtc_marine at hotmail.com
         QAContact: ros-bugs at reactos.org


Created an attachment (id=3111)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=3111)
_kbhit() patch

This is something I have been working on since last night. :)

Some notes:
1) Forgive my sloppy coding skills (all those LeaveCriticalSections, use of
malloc/free *smack*), alot of it was written in a rush to get something going.
2) For some reason, the first char entered isn't detected (on windows and
reactos)
3) The thread safety code is questionable, I haven't tested this, but windows
does use critical sections for it.
4) Compared to the windows way of doing it, it is probably wrong.
5) Maybe other things as well.

But it does work (atleast when I tested it on windows and reactos) compared to
the previous implementation of it which did not at all.

You can remove my name from it, just throw us some e-props on svn :P reformat
the file or whichever :)


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Ros-bugs mailing list