> ## Documentation Index
> Fetch the complete documentation index at: https://docs.overlayed.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Global Window Events

> Events emitted by the windows object, such as input and resolution changes.

The `windows` object emits the following **global** events:

### Resolution

Listen to when the game changes resolution.

```typescript theme={null}
overlay.windows.on("resolution", (width: number, height: number) => {
	// ...
});
```

### Key Down

```typescript theme={null}
overlay.windows.on("keyDown", (event: KeyboardKeyEvent) => {
	// ...
});
```

### Key Up

```typescript theme={null}
overlay.windows.on("keyUp", (event: KeyboardKeyEvent) => {
	// ...
});
```

### Keyboard Focus

```typescript theme={null}
overlay.windows.on("keyboardFocus", (focus: boolean) => {
	// ...
});
```

### Mouse Down

```typescript theme={null}
overlay.windows.on("mouseDown", (event: MouseButtonEvent) => {
	// ...
});
```

### Mouse Up

```typescript theme={null}
overlay.windows.on("mouseUp", (event: MouseButtonEvent) => {
	// ...
});
```
