Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(examples): a rebinding UI that knows about the newest kind of binding

esengine556d6152f622
diff --git a/examples/input-actions/src/actions.ts b/examples/input-actions/src/actions.ts
index 559d97ecb..6ddd42d1d 100644
--- a/examples/input-actions/src/actions.ts
+++ b/examples/input-actions/src/actions.ts
@@ -39,6 +39,7 @@ export function formatBinding(b: Binding): string {
return [b.up, b.left, b.down, b.right].map(keyName).join('');
}
case 'stick': return b.stick === 'left' ? 'Left stick' : 'Right stick';
+ case 'virtual': return `On-screen ${b.id}`;
}
}