Commit Graph

127 Commits

Author SHA1 Message Date
Ryan Pavlik
434e53592a A little warning cleanup 2012-05-01 19:13:48 -05:00
Kevin M. Godby
c7bcd7aecd Fixed a few spelling errors. 2012-02-18 00:46:16 -06:00
Juan Sebastian Casallas
5cfa33a8a8 [mac] Reopen outputChannel on wiiuse_io_write failure
-The first write on ouputChannel may fail
-Subsequent write calls are also prone to failure
-Reopening the channel on failure should solve this problem
2012-01-16 21:41:18 -06:00
Jan Ciger
ce9e1b6156 added forgotten Balance board support 2012-01-16 13:35:44 -06:00
Juan Sebastian Casallas
240ef2f3f9 events.c: Clear event buffer after propagating in Mac
-The line was previously commented-out
-Even if the instruction is not vital, uncommenting it makes mac polling consistent with unix and windows polling
2011-11-30 19:27:20 +01:00
Juan Sebastian Casallas
e8126a1dca Update headers on io_mac, wiiuse and wiiuse_internal
-These are mostly copyright and consistency issues
-On io_mac.h/m prepended "based on io_mac.h/m from WiiC,"  to "written by: Gabiele Randelli" 
and specified the files as part of wiiuse instead 
of wiiC.
-On wiiuse.h and wiiuse_internal.h gave credit to WiiC
and Gabiele Randelli for Mac-specific class codes 
and wiimote_t members
2011-11-23 00:04:02 +01:00
Juan Sebastian Casallas
d9e72fe730 Change scope of propagate_event for use in io_mac.m
-propagate_event was static in events.c
-io_mac.m uses propagate_event when receiving data before finishing the handshake
2011-11-22 23:29:49 +01:00
Juan Sebastian Casallas
257b94659d Add io_mac files from wiic, update wiiuse definitions
-Used io_mac.h/.m from wiic and added them to CMakeLists
-Define WIIUSE_MAC on wiiuse.h and wiiuse_internal.h
-Implemented wiiuse_poll when WIIUSE_MAC is defined
-Added Mac-specific includes to wiiuse.h and wiiuse_internal.h
-Added Mac-specific members to wiimote_t on wiiuse.h
-Added Mac-specific WM_DEV_CLASS definitions to wiiuse_internal.h
-Modified wiiuse_poll for use with Mac
-Added init and cleanup functions to io_mac.m
2011-11-22 23:13:40 +01:00
Jan Ciger
97768bf63c Added documentation 2011-09-15 02:31:49 +02:00
Jan Ciger
1c5bb6cb33 Removed unused variables 2011-09-15 01:32:09 +02:00
Jan Ciger
3c9cfdf656 Renamed variables to something more descriptive, removed unused code 2011-09-15 01:29:43 +02:00
Ryan Pavlik
446731114c remove #if 0 code. 2011-09-14 14:51:50 -05:00
Ryan Pavlik
f7b198e0e6 Remove old encrypted expansion codes - no longer needed 2011-09-14 13:02:41 -05:00
Ryan Pavlik
e1fcc8266c more IWYU include comments 2011-09-14 13:02:30 -05:00
Ryan Pavlik
61f1e7e18d add comments from include-what-you-use 2011-09-14 10:34:12 -05:00
Ryan Pavlik
ea793369f6 Fix mingw build 2011-09-14 10:34:12 -05:00
Jan Ciger
44dcb16c58 Windows compilation fixes 2011-09-14 10:34:09 -05:00
Jan Ciger
9ae7f37396 Added expansion detection from fWiine
Added gyro rate calculations & calibrations from WiiC

Conflicts:

	src/events.c
	src/io.c
	src/motion_plus.c
	src/wiiuse_internal.h
2011-09-14 10:34:04 -05:00
Jan Ciger
80e8fa37ac cleanup
Conflicts:

	src/events.c
	src/io.c
	src/wiiuse.c
	src/wiiuse.h
2011-09-14 10:33:59 -05:00
Jan Ciger
9b5ef23276 More fWiine merging
Conflicts:

	src/events.c
	src/motion_plus.c
	src/wiiuse.h
2011-09-14 10:33:54 -05:00
Jan Ciger
541cbb5156 Merged stuff from fWiine, Wiiuse master and local Motion+ modifs, not working yet
Dos2unix and unexpanded, then selectively committed by rpavlik
2011-09-14 10:33:43 -05:00
Ryan Pavlik
7dec48c44f convert c++-style comments 2011-09-14 10:16:13 -05:00
Ryan Pavlik
c508e14935 clean up write_data_cb types 2011-09-14 10:14:57 -05:00
Ryan Pavlik
b68452d98e use endianness function in motion_plus 2011-09-14 10:14:57 -05:00
Ryan Pavlik
c51ce2893e use tidier datatypes in motionplus 2011-09-14 10:14:57 -05:00
Ryan Pavlik
fa8662f781 fix pointer checking order 2011-09-14 10:14:57 -05:00
Ryan Pavlik
4ad1e56cdf wiiuse_send_next_pending_write_request can call wiiuse_write_data 2011-09-14 10:14:57 -05:00
Ryan Pavlik
e8d2be3601 Unix line endings and remove trailing spaces 2011-09-14 10:14:57 -05:00
Ryan Pavlik
93593c2766 improve all includes using iwyu 2011-09-14 10:14:57 -05:00
Ryan Pavlik
24f8ed947a mark up motion plus for doxygen 2011-09-14 10:14:56 -05:00
Ryan Pavlik
2b8a079d8f include ir.h 2011-09-14 10:14:56 -05:00
Ryan Pavlik
fc20f53713 add license note to motion_plus.h 2011-09-14 10:14:56 -05:00
Ryan Pavlik
73f575a89e add some prototypes to headers as needed by motion_plus 2011-09-14 10:14:56 -05:00
Ryan Pavlik
d4a6061ce6 cleanup trailing spaces 2011-09-14 10:14:56 -05:00
Ryan Pavlik
c2077708fb re-organize and cleanup motion_plus includes 2011-09-14 10:14:56 -05:00
Radu Andries
1a9293ab29 Added initial support for Motion Plus from fork http://sourceforge.net/projects/fwiine/files/wiiuse/0.13/ 2011-09-14 10:14:56 -05:00
Ryan Pavlik
adbc96318b banish all c++-style comments 2011-09-14 09:42:00 -05:00
Ryan Pavlik
9763c37525 a little spacing cleanup 2011-09-14 09:36:20 -05:00
Ryan Pavlik
ddeed643db move "BUILDING" definition into the library's subdir 2011-09-09 09:43:46 -05:00
Ryan Pavlik
3788697c5e Add static lib support to cmake 2011-09-09 09:42:35 -05:00
Ryan Pavlik
1e85c72ce9 Merge static library support from paulburton 2011-09-09 09:38:20 -05:00
Ryan Pavlik
ee5f75c744 statically allocate storage for versionstring 2011-09-09 09:32:12 -05:00
Ryan Pavlik
3e4edb3905 make sure we stay in float-land for wiiboard 2011-09-09 09:32:12 -05:00
Ryan Pavlik
c58e7d1271 move variable creation to beginning of function, fixing splint parse error 2011-09-09 09:32:06 -05:00
Ryan Pavlik
9f2f92eb6f cast malloc results 2011-09-07 10:43:21 -05:00
Ryan Pavlik
ae19b72724 add missing include 2011-09-07 10:43:21 -05:00
Ryan Pavlik
5a60180cfa move IR block data to be static in ir.cpp, and adjust get_ir_sens accordingly 2011-09-07 10:43:21 -05:00
Ryan Pavlik
7bec38254e wiiuse write data can take const byte 2011-09-07 10:43:21 -05:00
Ryan Pavlik
7e295eb944 move some platform-specific code out of the main wiiuse source
Initializing and cleaning up platform-specific fields in the wiimote
structure is now done in a separate routine.
2011-09-07 10:43:21 -05:00
Ryan Pavlik
da52f94619 fix two "address of temporary" warnings 2011-09-07 10:15:39 -05:00