---
url: /api/kiln/type-aliases/ScriptEvent.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / ScriptEvent

# Type Alias: ScriptEvent

```ts
type ScriptEvent = object & 
  | {
  press: string;
  value?: number;
}
  | {
  release: string;
}
  | {
  tap: string;
}
  | {
  hold: string;
  frames: number;
}
  | {
  key: string;
  up?: boolean;
}
  | {
  axis:   | {
     x: number;
     y: number;
   }
     | null;
}
  | {
  pointer: {
     x: number;
     y: number;
     down?: boolean;
     ndcX?: number;
     ndcY?: number;
     wheel?: number;
  };
};
```

One step of an input script. `frame` counts frames after script() was called (1 = the next frame).

## Type Declaration

### frame

```ts
frame: number;
```
