Commit Graph

313 Commits

Author SHA1 Message Date
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
Lysann Schlegel
f7b4fd44a0 fix mac expansion handshake by propagating the event on receive 2012-11-10 00:52:05 +01:00
Lysann Schlegel
be1f23ff70 getting rid of osx 10.7+ deprecation warnings 2012-11-08 22:29:53 +01:00
Brodie Blackburn
106f81eaf9 Check Bluetooth power state
Taken from http://cocoadev.com/wiki/FindingBluetoothAvailability
2012-10-06 10:40:29 +10:00
Ryan Pavlik
9124fa7cc7 De-duplicate handling of wiimote accelerometer data. 2012-06-28 17:24:41 -05:00
Ryan Pavlik
300c91398d Fix an error in a comment 2012-06-28 17:24:22 -05:00
Ryan Pavlik
9f6e0cd2c0 De-duplication of wiiuse_read_data 2012-06-28 17:15:44 -05:00
Ryan Pavlik
5f3d72c2c1 Remove remaining decryption code. 2012-06-28 17:10:34 -05:00
Ryan Pavlik
ee82f27792 Remove unused variables 2012-06-28 17:09:15 -05:00
Ryan Pavlik
1a948b0c47 Oops, fix build. 2012-06-28 17:07:11 -05:00
Ryan Pavlik
bfa81e3f0c remove stray comment. 2012-06-28 17:05:45 -05:00
Ryan Pavlik
0de7c661b7 Added bounds safety checking 2012-06-28 17:05:39 -05:00
Ryan Pavlik
4d79373428 Similar cleanup on nunchuk 2012-06-28 17:03:49 -05:00
Ryan Pavlik
97eb4d2557 Cleanup use of calib data. 2012-06-28 17:00:01 -05:00
Ryan Pavlik
f315d20bd6 Based on my nunchuk findings, remove decryption from classic and gh3 2012-06-28 16:59:27 -05:00
Ryan Pavlik
f24cfb6e5a Fully remove nunchuk decryption code: verified with real nunchuk. 2012-06-28 16:53:26 -05:00
Ryan Pavlik
f9bde94210 Comment out decryption in nunchuk - needed to work with a simulated Nunchuk.
Not sure why this was needed - will test with a real nunchuk.
2012-06-28 16:50:40 -05:00
Ryan Pavlik
2f6901cde3 Only move from WIIMOTE_STATE_EXP_HANDSHAKE to WIIMOTE_STATE_EXP if the expansion's handshake code was successful. 2012-06-28 16:26:30 -05:00
Ryan Pavlik
3d21a25822 Make disable_expansion reset expansion state to 0.
Lets you unplug expansions and replug or plug a different one.
2012-06-28 16:24:50 -05:00
Ryan Pavlik
e8a7ad62fc If no handshake data received from the expansion, disable it.
Should give it a chance to re-handshake instead of getting
stuck in "case 3"
2012-06-28 16:23:56 -05:00
Ryan Pavlik
713456b563 In expansion handshake, read data after saying we'd like it. 2012-06-28 16:23:10 -05:00
Ryan Pavlik
abf13bae58 Add debug display of joystick calibration data. 2012-06-28 16:21:57 -05:00
Ryan Pavlik
c800a049dc Use the right sqrt for floats in C. 2012-06-28 16:21:18 -05:00
Ryan Pavlik
29e5fabeac Use atan2f instead of atan and weird adjustments.
This should keep the angle values in [0, 360]
just as apparently intended before.
2012-06-28 16:21:02 -05:00
Ryan Pavlik
2db3dd3a03 Factor out the application of a two-domain mapping ('calibration').
Replaces repeated code, and should be more reliable as well as
avoiding division by 0.
2012-06-28 16:19:31 -05:00
Ryan Pavlik
84fb39dcb3 Add some debug messages 2012-06-28 16:17:37 -05:00
Ryan Pavlik
ab67501959 don't need much of windows.h, just a little. 2012-05-01 19:14:02 -05:00
Ryan Pavlik
434e53592a A little warning cleanup 2012-05-01 19:13:48 -05:00
Ryan Pavlik
3ad3c396be Merge pull request #18 from godbyk/spellcheck
Fixed spelling errors.
2012-02-20 13:06:52 -08:00
Kevin M. Godby
c7bcd7aecd Fixed a few spelling errors. 2012-02-18 00:46:16 -06:00
Juan Sebastian Casallas
47da0f6e10 Merge pull request #15 from jscasallas/master
Solved the "if unable to write, then relaunch" issue on Mac.
Mac is now "fully supported"
2012-01-16 21:12:42 -08:00
Juan Sebastian Casallas
e9f9b0a842 CHANGELOG: Reference added Mac support 2012-01-16 23:08:22 -06:00
Juan Sebastian Casallas
3590fc1b92 README: Remove the "if unable to write, then relaunch" issue on Mac
-This issue was solved by reopening the output channel on write fail
2012-01-16 22:48:05 -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
Juan Sebastian Casallas
5ed42458f3 [mac]wiiuse_io_read: Add buffer and length parameters
-According to the new signature for wiiuse_io_read
2012-01-16 21:31:54 -06:00
Juan Sebastian Casallas
aef7ec45f8 motion_plus.c: Revise some includes
-wiiuse_internal.h was already included via motion_plus.h
-io.h is needed for wiiuse_read
2012-01-16 19:24:15 -06:00
Juan Sebastian Casallas
ddc645e125 pre-declare wiiuse_motion_plus on motion_plus.h
-This ensures the function can be called outside of motion_plus.c
-Also eliminates an explicit declaration warning on events.c
2012-01-16 19:21:41 -06:00
Juan Sebastian Casallas
1b25cd6289 Replace explicit 32 lengths for MAX_PAYLOAD 2012-01-16 18:34:38 -06:00
Jan Ciger
2e347bc523 Changed the initial handshake to be synchronous
Made the Motion+ init a lot more robust
Code cleanup
2012-01-16 13:35:48 -06:00
Jan Ciger
ce9e1b6156 added forgotten Balance board support 2012-01-16 13:35:44 -06:00
Ryan Pavlik
0bfebc4565 Merge pull request #11 from jscasallas/wiic_mac
Mac support based on WiiC
2011-11-30 14:30:21 -08:00