mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
28 lines
503 B
C#
28 lines
503 B
C#
namespace Terminal {
|
|
|
|
public class Event {
|
|
public class Key : Event {
|
|
public int Code { get; private set; }
|
|
|
|
public Key (int code)
|
|
{
|
|
Code = code;
|
|
}
|
|
}
|
|
|
|
public class Mouse : Event {
|
|
}
|
|
|
|
public static Event CreateMouseEvent ()
|
|
{
|
|
return new Mouse ();
|
|
}
|
|
|
|
public static Event CreateKeyEvent (int code)
|
|
{
|
|
return new Key (code);
|
|
}
|
|
|
|
}
|
|
|
|
} |