feat: controller/gamepad support (#350)

Adds `nesgamepad`, basically "diet-coke vimputti" for Nestri's microVM
needs here.

Comes with direct mapping for:
- Sony
  - DualShock 4 (v2), DualSense
- Microsoft
  - Xbox 360 pad, Xbox One S pad
- Nintendo
  - Pro Controller
- Generic pad for unknown controllers

---------

Co-authored-by: DatCaptainHorse <DatCaptainHorse@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kristian Ollikainen
2026-09-27 17:50:02 +03:00
committed by GitHub
co-authored by DatCaptainHorse Claude Opus 5.5
parent 291fabd145
commit 451b495de6
24 changed files with 4528 additions and 41 deletions
Generated
+13
View File
@@ -2361,6 +2361,19 @@ dependencies = [
"ureq",
]
[[package]]
name = "nesgamepad"
version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"libc",
"nesprotocol",
"tokio",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "neshub"
version = "0.2.0"