in reply to (tye)Re: Reading all nonblocking keystrokes in Win2000
in thread Reading all nonblocking keystrokes in Win2000

Thanks for the tip on how to call the function. I found the source for ReadKey.xs, which contains Win32PeekChar(). The problem is that I haven't figured out how to replace ReadKey.xs. I found the file on the web, not on my machine, so I'm not sure where it is stored or compiled. It must be somewhere, but I'm not quite sure yet.

-----------------------------------
Washizu
The best offense is a good offense.

  • Comment on Re: (tye)Re: Reading all nonblocking keystrokes in Win2000

Replies are listed 'Best First'.
(tye)Re2: Reading all nonblocking keystrokes in Win2000
by tye (Sage) on Nov 19, 2001 at 21:51 UTC

    *.xs files are turned into *.c files that are then compiled into shared libraries (DLLs on Windows). Read perldoc perlxstut, perldoc perlxs, perldoc perlmod, and perldoc perlmodlib for more information.

    If you want to make (changes to) *.xs code under Windows, then you really want WinNT or later and the same C compiler that was used to build your version of Perl (which means Microsoft Visual C++ unless you have an unusual distribution of Perl installed).

            - tye (but my friends call me "Tye")