packages feed

hcwiid 0.0.5 → 0.0.6.1

raw patch · 4 files changed

+67/−27 lines, 4 filesnew-uploaderPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- System.CWiid: acc :: CWiidState -> [Int]
- System.CWiid: battery :: CWiidState -> Int
- System.CWiid: buttons :: CWiidState -> Int
- System.CWiid: cwiidIRSrcPosX :: CWiidIRSrc -> Int
- System.CWiid: cwiidIRSrcPosY :: CWiidIRSrc -> Int
- System.CWiid: cwiidIRSrcSize :: CWiidIRSrc -> Int
- System.CWiid: cwiidIRSrcValid :: CWiidIRSrc -> Bool
- System.CWiid: instance Eq CWiidAcc
- System.CWiid: instance Eq CWiidBtnFlag
- System.CWiid: instance Eq CWiidLedFlag
- System.CWiid: instance Eq CWiidRptMode
- System.CWiid: instance Show CWiidAcc
- System.CWiid: instance Show CWiidBtnFlag
- System.CWiid: instance Show CWiidIRSrc
- System.CWiid: instance Show CWiidLedFlag
- System.CWiid: instance Show CWiidRptMode
- System.CWiid: instance Show CWiidState
- System.CWiid: instance Storable CWiidBdaddr
- System.CWiid: instance Storable CWiidIRSrc
- System.CWiid: instance Storable CWiidState
- System.CWiid: irSrc :: CWiidState -> [CWiidIRSrc]
- System.CWiid: led :: CWiidState -> Int
- System.CWiid: rptMode :: CWiidState -> Int
- System.CWiid: rumble :: CWiidState -> Int
- System.CWiid: unCWiidAcc :: CWiidAcc -> [Int]
- System.CWiid: unCWiidBtnFlag :: CWiidBtnFlag -> Int
+ System.CWiid: [acc] :: CWiidState -> [Int]
+ System.CWiid: [battery] :: CWiidState -> Int
+ System.CWiid: [buttons] :: CWiidState -> Int
+ System.CWiid: [cwiidIRSrcPosX] :: CWiidIRSrc -> Int
+ System.CWiid: [cwiidIRSrcPosY] :: CWiidIRSrc -> Int
+ System.CWiid: [cwiidIRSrcSize] :: CWiidIRSrc -> Int
+ System.CWiid: [cwiidIRSrcValid] :: CWiidIRSrc -> Bool
+ System.CWiid: [irSrc] :: CWiidState -> [CWiidIRSrc]
+ System.CWiid: [led] :: CWiidState -> Int
+ System.CWiid: [rptMode] :: CWiidState -> Int
+ System.CWiid: [rumble] :: CWiidState -> Int
+ System.CWiid: [unCWiidAcc] :: CWiidAcc -> [Int]
+ System.CWiid: [unCWiidBtnFlag] :: CWiidBtnFlag -> Int
+ System.CWiid: instance Foreign.Storable.Storable System.CWiid.CWiidBdaddr
+ System.CWiid: instance Foreign.Storable.Storable System.CWiid.CWiidIRSrc
+ System.CWiid: instance Foreign.Storable.Storable System.CWiid.CWiidState
+ System.CWiid: instance GHC.Classes.Eq System.CWiid.CWiidAcc
+ System.CWiid: instance GHC.Classes.Eq System.CWiid.CWiidBtnFlag
+ System.CWiid: instance GHC.Classes.Eq System.CWiid.CWiidLedFlag
+ System.CWiid: instance GHC.Classes.Eq System.CWiid.CWiidRptMode
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidAcc
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidBtnFlag
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidIRSrc
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidLedFlag
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidRptMode
+ System.CWiid: instance GHC.Show.Show System.CWiid.CWiidState

Files

CHANGELOG view
@@ -1,3 +1,18 @@+2017-04-27 Ivan Perez <ivan.perez@keera.co.uk>++        * Adds project to Travis CI.+        * Fixes error in Cabal file.+        * Version bump (0.0.6.1).++2014-06-04 Ivan Perez <ivan.perez@keera.co.uk>++        * Adds project to hudson-backed continuous integration server.++2014-05-28 Ivan Perez <ivan.perez@keera.co.uk>++        * hcwiid.cabal: Version bump. Removed original author upon+          request (credit is still given in the AUTHORS file).+ 2014-05-20 Ivan Perez <ivan.perez@keera.co.uk>          * API: adds infrared tracking support
− README
@@ -1,23 +0,0 @@-This is a refurbished version of hcwiid. It will include most of cwiid,-and I've already began 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.--First things first: 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.)--TODO-========-* Locate 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.
+ README.md view
@@ -0,0 +1,48 @@+[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ivanperez-keera&url=https://github.com/ivanperez-keera/hcwiid&title=HCwiid&language=&tags=github&category=software) ++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+===================+* Carettah (http://carettah.masterq.net/)+* Haskanoid (https://github.com/ivanperez-keera/haskanoid)++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.
hcwiid.cabal view
@@ -1,6 +1,6 @@ Name:                   hcwiid-Version:                0.0.5-Author:                 Kiwamu Okabe <kiwamu@debian.or.jp>, Ivan Perez <ivan.perez@keera.co.uk>+Version:                0.0.6.1+Author:                 Ivan Perez <ivan.perez@keera.co.uk> Maintainer:             Ivan Perez <ivan.perez@keera.co.uk> License:                GPL-2 License-File:           COPYING@@ -16,7 +16,7 @@ Homepage:               https://github.com/ivanperez-keera/hcwiid Tested-with:            GHC == 7.0.4 -Extra-source-files: README CHANGELOG test/Test.hs test/Makefile+Extra-source-files: README.md CHANGELOG test/Test.hs test/Makefile  Library   GHC-Options:          -Wall@@ -29,7 +29,7 @@   -- machine switch   if os(linux)     CPP-Options:        -DOS_Linux- + Source-Repository head   Type:                 git   Location:             git@github.com:ivanperez-keera/hcwiid.git