<?phpnamespace App\Revisited\Ui;/** What the menus and screens get from the keys, the pad, the mouse and the touches this frame (filled by the scene). */final class UiInput{ public bool $up = false; public bool $down = false; public bool $left = false; public bool $right = false; public bool $ok = false; public bool $back = false; public bool $prev = false; public bool $next = false; public bool $drop = false; /** 1..6: a number key pressed this frame, 0: none */ public int $digit = 0; /** the pointer, in Canvas units */ public float $mx = 0.0; public float $my = 0.0; public bool $moved = false; public bool $click = false; /** the region clicked (Canvas::hitAt), null: none */ public ?string $hit = null; /** the region under the pointer */ public ?string $hover = null; public float $wheel = 0.0; /** the main button / a finger is down (phones: drags scroll the lists) */ public bool $held = false; public function reset(): void { $this->up = $this->down = $this->left = $this->right = $this->ok = $this->back = false; $this->prev = $this->next = $this->drop = $this->moved = $this->click = false; $this->digit = 0; $this->hit = $this->hover = null; $this->wheel = 0.0; }}