---
title: "Input Event Source Generator - s&box library"
description: "An strong typed source generator for event based Input capture"
canonical: "https://sbox.watch/fr/libraries/moth/inputeventsourcegen/"
generated_at: "2026-10-09T10:58:13.540Z"
---

# Input Event Source Generator

An strong typed source generator for event based Input capture

- Type: bibliothèque
- Identifiant: moth.inputeventsourcegen
- Créateur: Moth
- URL canonique: https://sbox.watch/fr/libraries/moth/inputeventsourcegen/
- Markdown: https://sbox.watch/fr/libraries/moth/inputeventsourcegen/index.md
- sbox.game: https://sbox.game/moth/inputeventsourcegen/
- Généré: 2026-10-09T10:58:13.540Z

## Statistiques

- dynamique sur 24 h: +0
- Terry Score: --
- Favoris: 0
- Votes positifs: 0
- Votes négatifs: 0
- Mis à jour: 10 mai 2026
- Créé: 10 mai 2026
- Taille: 87.2 KB
- Fichiers: 18
- Tags: input, mapper, sourcegenerator

## Description

Access to Input - Generate Typed Inputs from editor and it will auto-generate an event "Pressed", "Down" and "Released" for each input registered.

Usage:

Add Input Broadcaster Service to the scene.

Listen to event (OnStart or where required)
Sandbox.InputManager.GeneratedInput.Pressed.Jump += MyImplementation;

If listening to event the event listener MUST be disconnected (OnDestroy and where you need it)
Sandbox.InputManager.GeneratedInput.Pressed.Jump -= MyImplementation;

Then you can implement any behavior you want or set the variables you need, example:
private void MyImplementation() { DoJump(); IsJumping = true; }



