xtd 0.2.0
Loading...
Searching...
No Matches

◆ console_key_info() [2/2]

xtd::console_key_info::console_key_info ( char32  key_char,
console_key  key,
bool  shift,
bool  alt,
bool  control 
)
noexcept

Initializes a new instance of the console_key_info class using the specified character, console key, and modifier keys.

Parameters
keyCharThe Unicode character that corresponds to the key parameter.
keyThe console key that corresponds to the keyChar parameter.
shifttrue to indicate that a SHIFT key was pressed; otherwise, false.
alttrue to indicate that an ALT key was pressed; otherwise, false.
controltrue to indicate that a CTRL key was pressed; otherwise, false.
Remarks
This type is not intended to be created by users. Instead, it is returned to the user in response to calling the Console::ReadKey method.
The console_key_info type does not specify whether the left or right SHIFT, ALT, or CTRL modifier key was pressed