Table of Contents

Enum ViewerInputKind

Namespace
Gym.Environments
Assembly
Gym.dll

What a window reported: a key pressed or released, its close button, a new client size, or the mouse (a button pressed or released, the pointer moved, the wheel turned).

public enum ViewerInputKind
Extension Methods

Fields

KeyDown = 0

A key went down; Key holds its SDL keycode.

KeyUp = 1

A key went up; Key holds its SDL keycode.

Close = 2

The window's close button was pressed; the window stays open (see BeginInput()).

Resized = 3

The window's client area changed size; Width and Height hold the new size.

MouseDown = 4

A mouse button went down over the frame; Button names it and X, Y hold the pointer.

MouseUp = 5

A mouse button went up; Button names it, X and Y hold the pointer.

MouseMove = 6

The pointer moved over the frame (or, a button held, anywhere); X and Y hold it.

Scroll = 7

The wheel turned; ScrollX and ScrollY hold the turn in notches, X and Y the pointer.