packages feed

hcwiid 0.0.2 → 0.0.3

raw patch · 4 files changed

+20/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ System.CWiid: cwiidIsBtnPushed :: CWiidBtnFlag -> CWiidBtnFlag -> Bool

Files

CHANGELOG view
@@ -1,4 +1,9 @@ 2014-05-01 Ivan Perez <ivan.perez@keera.co.uk> +        * hcwiid.cabal: Version bump (0.0.3)+        * API: adds test function to determine if a button is pushed (down).++2014-05-01 Ivan Perez <ivan.perez@keera.co.uk>+         * hcwiid.cabal: Version bump. Adds new maitainer, repo, extra files.         * API: adds set_rumble.
README view
@@ -1,4 +1,5 @@-This is a refurbished version of hcwiid. It will include most of cwiid.+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. @@ -14,3 +15,9 @@     (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.
System/CWiid.hsc view
@@ -2,7 +2,7 @@  module System.CWiid        (cwiidOpen, cwiidSetLed, cwiidSetRptMode, cwiidSetRumble,-        cwiidGetBtnState,+        cwiidGetBtnState, cwiidIsBtnPushed,         cwiidLed1, cwiidLed2, cwiidLed3, cwiidLed4, combineCwiidLedFlag,         cwiidBtn2, cwiidBtn1, cwiidBtnB, cwiidBtnA, cwiidBtnMinus,         cwiidBtnHome, cwiidBtnLeft, cwiidBtnRight, cwiidBtnDown, cwiidBtnUp,@@ -148,6 +148,10 @@     ws <- peek wiState     return $ CWiidBtnFlag $ buttons ws       where handle = unCWiidWiimote wm++cwiidIsBtnPushed :: CWiidBtnFlag -> CWiidBtnFlag -> Bool+cwiidIsBtnPushed flags btn =+  unCWiidBtnFlag flags .&. unCWiidBtnFlag btn == unCWiidBtnFlag btn  ----------------------------------------------------------------------------- -- C land
hcwiid.cabal view
@@ -1,5 +1,5 @@ Name:                   hcwiid-Version:                0.0.2+Version:                0.0.3 Author:                 Kiwamu Okabe <kiwamu@debian.or.jp> Maintainer:             Ivan Perez <ivan.perez@keera.co.uk> License:                GPL-2@@ -13,7 +13,7 @@ Stability:              Experimental Cabal-Version:          >= 1.6 Build-Type:             Simple-Homepage:               https://gitorious.org/hcwiid+Homepage:               https://github.com/ivanperez-keera/hcwiid Tested-with:            GHC == 7.0.4  Extra-source-files: README CHANGELOG test/Test.hs test/Makefile