Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: InfoChapter 19
Win32 Modules and Extensions
Next: Reference: InputChar
 

Input

$cons->Input

Reads an event from the input buffer. Returns a list of values, determined by the type of event. A keyboard event will contain the following values, in order:

A mouse event will return the following values, in order:

This method will return undef on error.

Note that the events returned depend on the input mode of the console; for example, mouse events are not intercepted unless ENABLE_MOUSE_INPUT is specified.


Previous: Reference: InfoPerl in a NutshellNext: Reference: InputChar
Reference: InfoBook IndexReference: InputChar

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.