georgefst / monpad

A fully-customisable web-based gamepad, designed to be used from smartphones.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows support

georgefst opened this issue · comments

This is the big one...

The bulk of the work would probably be writing Haskell bindings to (a subset of) something like ViGEm.

Once such a binding exists, integration would probably be no more complicated than the existing Linux code.

Given that ViGEm uses C++, hoppy might be the way to create bindings.

Some initial work (for mouse/keyboard emulation, rather than gamepad) on https://github.com/georgefst/monpad/tree/windows.

Some discussion about the difficulties of linking C++ libraries with GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/20010.

EDIT: that thread seemingly led to the introduction of system-cxx-std-lib: https://well-typed.com/blog/2022/06/ghc-2022-04-2022-05/.