georgefst / monpad

A fully-customisable web-based gamepad, designed to be used from smartphones.
BSD 3-Clause "New" or "Revised" License
39 stars 5 forks source link

Windows support #5

Open georgefst opened 4 years ago

georgefst commented 4 years ago

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.

georgefst commented 4 years ago

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

georgefst commented 4 years ago

Or inline-c-cpp, or just extern "C" if possible.

See:

georgefst commented 3 years ago

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

georgefst commented 2 years ago

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/.