Programming API Reference: EduGraf.UI

Enum public Pressing

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

Class public abstract InputEvent

This is the abstract base class for event handling.

Class public KeyInputEvent

: InputEvent
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.

Class public MouseButtonEvent

: InputEvent
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.

Class public MouseMoveEvent

: InputEvent
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.

Class public MouseScrollEvent

: InputEvent
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.