|
||
Keys |
|
|||
Structure |
An enumeration used by the SilverSharp API routines inchar and nextkey to describe a keyboard or mouse key
|
|
||
Members |
The symbolic names in the Keys enumeration represent keys and/or various key states. Keys.F1, for instance, indicates the F1 key on the keyboard was pressed. This enumeration is a SilverSharp substitute for the SilverC sskeys.h include file. |
|
||
See Also |
|
|
||
Remarks |
The inchar and nextkey routines, and by extension the Keys enumeration, are provided to aid in the porting of SilverC, SilverPlus, and SilverEngine code. This mechanism is considered a bad fit for event-driven interfaces like those used in .NET. For an example of a better way to handle keyboard and mouse input, see the SilverSharp WPF sample BirdHouse, Garage, or Othello.
|
|
||
Example |
The following code will wait for the user to press the Escape key before continuing:
|
|