Commit Graph

208 Commits

Author SHA1 Message Date
Jan Ciger
143b682b8e Don't redefine MS types
These types are not used in Wiiuse and conflict with MSVC 2012, because
that defines int_fast16_t as int (among other things).
2013-08-23 17:41:19 +02:00
Ryan Pavlik
a40a2301a1 Don't re-define WIN32_LEAN_AND_MEAN 2013-02-14 16:12:54 -06:00
Lysann Schlegel
4b81f2a0a8 Merge remote-tracking branch 'upstream/osx-refactor_sync-mplus' into osx-refactor_sync-mplus 2012-12-12 20:59:34 +01:00
Lysann Schlegel
4f47a2edbe wiiuse_wait_report: WIIUSE_DEBUG instead of WIIUSE_WARNING for dropped reports 2012-12-12 20:58:58 +01:00
Ryan Pavlik
2a7702c043 Fix spelling error caught with Codespell. 2012-12-12 12:02:28 -06:00
Ryan Pavlik
f1b6c4ad2b Add missing include. 2012-12-10 14:14:07 -06:00
Ryan Pavlik
a86f33afa5 astyle on the library. 2012-12-10 14:13:58 -06:00
Lysann Schlegel
82080f9f37 we need to pass a single wiimote structure instead of the array to wiiuse_os_read 2012-12-09 10:31:17 +01:00
Lysann Schlegel
ca7c6127ac fix *nix compilation error 2012-12-09 00:44:50 +01:00
Lysann Schlegel
a4e3140274 now swap WIIUSE_SYNC_HANDSHAKE usages again 2012-12-08 23:01:32 +01:00
Lysann Kessler
cfd8209c23 fix rumble flag and windows compiler warning 2012-12-08 22:44:48 +01:00
Lysann Schlegel
d7a5d77489 same interface for all wiiuse_os_write's
this also means we moved platform-sepcific write code into the wiiuse_os_write implementation of each platform.
2012-12-08 22:04:07 +01:00
Lysann Schlegel
f2bf07c18c same interface for all wiiuse_os_read's 2012-12-08 21:38:36 +01:00
Lysann Schlegel
97513647de fix *nix function names for read and write 2012-12-08 20:39:12 +01:00
Lysann Schlegel
72647a56b1 remove the event_buf from the wiimote structure, allocating it on demand instead 2012-12-08 20:34:13 +01:00
Lysann Kessler
866b124d35 fix Windows compilation, wiiuse_wait_report and wiiuse_probe_motion_plus 2012-12-08 19:04:27 +01:00
Lysann Schlegel
1df24b5c5a conditionally compile handshake_state field 2012-12-08 18:10:27 +01:00
Lysann Schlegel
f9f896e605 fix wiiuse_read on mac and windows 2012-12-08 18:00:31 +01:00
Lysann Schlegel
4244bf6c66 Merge remote-tracking branch 'upstream/sync-mplus' into osx-refactor_sync-mplus
Conflicts:
	src/events.c
	src/io.c
	src/io.h
	src/io_mac.m
	src/os_nix.c
	src/wiiuse_internal.h
2012-12-08 17:59:47 +01:00
Lysann Schlegel
8a3354d11b OSX 10.6 compatibility 2012-12-08 13:11:36 +01:00
Lysann Schlegel
43e8a27fcc no need to include mac IOBluetoothUserLib.h in wiiuse.h 2012-12-08 11:04:28 +01:00
Lysann Schlegel
73a47857c9 lowercase SET_SOURCE_FILES_PROPERTIES cmake command 2012-12-08 10:55:01 +01:00
Brodie Blackburn
ae001a43b3 Check Bluetooth power state
Taken from http://cocoadev.com/wiki/FindingBluetoothAvailability

Conflicts:
	src/io_mac.m
2012-12-07 20:01:53 +01:00
Lysann Schlegel
f6bbdb199d Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/events.c
	src/io_mac.m
2012-12-07 19:45:41 +01:00
Ryan Pavlik
330d3f3aab Merge pull request #20 from rpavlik/handshake-changes
Handshake/Expansion changes
2012-12-07 09:49:50 -08:00
Lysann Schlegel
7b6e621064 Merge branch 'osx-refactor' of github.com:lysannkessler/wiiuse into osx-refactor 2012-11-15 11:00:24 +01:00
Lysann Schlegel
11466cd19d fix syntax for non-C99 mode 2012-11-15 10:59:17 +01:00
Lysann Schlegel
5a2b31afbe os_mac.h is not a source file to compile 2012-11-15 10:58:48 +01:00
Lysann Schlegel
156d89ab16 fix *nix compilation 2012-11-15 10:54:17 +01:00
Lysann Schlegel
2e830fa6fa fix Windows compilation 2012-11-12 11:27:40 +01:00
Lysann Schlegel
ad79a2ff53 fix motion plus handshake on mac by disabling expansion handshake while motion plus handshake is being done 2012-11-12 01:56:34 +01:00
Lysann Schlegel
7b13623d12 use the interrupt (data) channel as output channel on mac 2012-11-12 01:45:32 +01:00
Lysann Schlegel
4bf58ca73a remove obsolete pre-handshake propagate_event on mac 2012-11-12 00:37:27 +01:00
Lysann Schlegel
6aef04f375 fix mac send/receive debug output 2012-11-11 23:12:44 +01:00
Lysann Schlegel
83fc61d7b1 remove debug print when trying to read/write unconnected devices 2012-11-11 20:27:29 +01:00
Lysann Schlegel
61d26d509c stop wiiuseexample when all wiimotes are disconnected 2012-11-11 18:53:37 +01:00
Lysann Schlegel
3b1d440f03 fix mac disconnection crash due to asynchronous operations 2012-11-11 18:44:31 +01:00
Lysann Schlegel
9892efab93 getting rid of several potential memory leaks and incorrect releases 2012-11-11 00:26:05 +01:00
Lysann Schlegel
233c496fa0 separate os.h interface from implementation (mac) 2012-11-11 00:05:04 +01:00
Lysann Schlegel
f0642ed028 fix os_nix.c stuff that broke during refactorings 2012-11-10 23:52:28 +01:00
Lysann Schlegel
7e502b66d6 implemented wiiuse_os_read for mac 2012-11-10 23:50:38 +01:00
Lysann Schlegel
8c2f22089a implemented wiiuse_io_write for mac 2012-11-10 21:26:15 +01:00
Lysann Schlegel
a39cfd4374 move most of the wiiuse mac implementation into WiiuseWiimote* object 2012-11-10 20:59:42 +01:00
Lysann Schlegel
b295af0777 implement wiiuse_os_disconnect for mac 2012-11-10 19:49:39 +01:00
Lysann Schlegel
7d9c82f604 implement wiiuse_os_connect for mac 2012-11-10 19:19:53 +01:00
Lysann Schlegel
a154eb5536 move find implementation for mac to different file; refactor a bit 2012-11-10 17:17:37 +01:00
Lysann Schlegel
b68c03efd7 implement wiiuse_os_find for mac 2012-11-10 16:22:00 +01:00
Lysann Schlegel
71569818e5 make wiimote_poll a platform-specific function, move implementations to os_*.c/os_mac.m 2012-11-10 13:56:06 +01:00
Lysann Schlegel
6f6ba68ed6 rename wiiuse_io_* to wiiuse_os_* 2012-11-10 13:38:05 +01:00
Lysann Schlegel
f1c7a7712b delete mac implementation, replace by stub; reorganize platform-specific code 2012-11-10 13:06:49 +01:00