Programming API Reference: EduGraf.UI

Enum public Pressing

The direction of the key or button changing.
  • Down
  • Up

Interface IInputEvent

This is the abstract base class for event handling.

Struct public readonly KeyInputEvent

This is the concrete class for key events.
    Property public Pressing Pressing { get; }: if the key is going down or up
    Property public ConsoleKey Key { get; }: that was pressed

Struct public readonly MouseButtonEvent

This is the concrete class for mouse button events.
    Property public Pressing Pressing { get; }: if the button is going down or up
    Property public MouseButton Button { get; }: that was pressed

Struct public readonly MouseMoveEvent

This is the concrete class for mouse move events.
    Property public float X { get; }: absolute position in pixels
    Property public float Y { get; }: absolute position in pixels

Struct public readonly MouseScrollEvent

This is the concrete class for mouse scroll events.
    Property public float DeltaX { get; }: relative position in pixels
    Property public float DeltaY { get; }: relative position in pixels