GPL-2.0-only licensed and maintained by Ivan Perez
This version can be pinned in stack with:hcwiid-0.0.6.1@sha256:93b22be73478eefd1145a6775618175932145ab317c12de91d5f8fce71a682ca,1323

Module documentation for 0.0.6.1

Depends on 2 packages(full list with versions):

Flattr this git repo

This is a refurbished version of hcwiid. It will include most of cwiid, and I’ve already begun to include extra functions that I find useful. If you find something in cwiid which is not included here and you need it, please let me know/send a pull request.

Instructions

The official announcement, which describes the available features, can be found here: http://keera.co.uk/blog/2014/05/27/interacting-haskell-games-using-wiimote/

Installation

You can either run cabal update and install directly from hackage (recommended), or clone this repository and install it with cabal.

Compiling programs that use the wiimote (special flags)!

How the frag do I compile the tests in test/?

You need to do two things:

  1. Compile the program with -rtsopts (enable RTS command line flags)

  2. Run the program with +RTS -V0 This will disable the internal ticks used for profiling, which in turn will make the runtime system not use the SIGALRM signal, which libluetooth uses for its own internal purposes and is necessary to connect to the wiimote.

    (This bit is the work of Paolo Capriotti, whose mastery of GHC baffles me every time.)

Projects using this

TODO

  • Locate more projects using this. (I am personally working on some games that will be published.)
  • Write a decent example that uses more than just testing a button thing.