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.
Or inline-c-cpp, or just extern "C"
if possible.
See:
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/.