Commit Graph

81 Commits

Author SHA1 Message Date
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
Ryan Pavlik
b03f8acecf fix visual studio build 2011-09-07 08:41:33 -05:00
Ryan Pavlik
35aa954855 fix inline for visual studio 2011-09-07 08:41:33 -05:00
Ryan Pavlik
8af6229665 put in extern "C" in case we build as c++ 2011-09-07 08:41:33 -05:00
Ryan Pavlik
f9584f7f67 add missing prototype in case of mingw 2011-09-07 08:41:33 -05:00
Ryan Pavlik
5caac95793 capitalization of include and library 2011-09-07 08:41:33 -05:00
Ryan Pavlik
d92a38adee add doxygen info for buffering functions 2011-09-07 08:41:33 -05:00
Ryan Pavlik
a9550ab9f0 change how the bluetooth address is set up on nix
Committing changes from dolphin-emu's wiiuse 0.13
2011-09-07 08:41:33 -05:00
Ryan Pavlik
7c45e68198 Typecast malloc results.
Committing changes from dolphin-emu's wiiuse 0.13
Conflicts:

	src/classic.c
	src/events.c
	src/nunchuk.c
2011-09-07 08:41:33 -05:00
Ryan Pavlik
44612529a7 try using endianness conversion functions instead of icky macros 2011-09-07 08:41:33 -05:00
Ryan Pavlik
74975b80e7 use the wiiuse_millisleep function in ir. 2011-09-07 08:39:38 -05:00
Ryan Pavlik
9cc64c51b1 Add a wiiuse_millisleep function. 2011-09-07 08:39:38 -05:00
Ryan Pavlik
8ae4146fd9 Fix for shutting off rumble, from Jeff Baker (Inv3rsion, LLC.) 2011-09-07 08:29:37 -05:00
Ryan Pavlik
95cb6aa0ae Unix line endings and remove trailing spaces 2011-09-07 08:29:37 -05:00
Ryan Pavlik
8e78f9b649 improve all includes using iwyu 2011-09-07 08:29:37 -05:00
Ryan Pavlik
3b70a17bc7 add missing include 2011-09-07 08:29:37 -05:00
Ryan Pavlik
751ad356f7 add some prototypes to headers 2011-09-07 08:29:24 -05:00
Ryan Pavlik
b0d506d433 Renaming WiimoteState_t to wiimote_callback_data_t 2011-06-20 10:16:43 -05:00
Ryan Pavlik
3ae8ff0139 Make the return value of wiiuse_update match that of wiiuse_poll 2011-06-17 10:34:33 -05:00
Ryan Pavlik
8f07f7a480 Remove unneeded comments and c++-style comment 2011-06-17 10:34:33 -05:00
Ryan Pavlik
c10ae6bcba Re-organize and comment the new functionality 2011-06-17 10:34:33 -05:00
Ryan Pavlik
ba5ac5e822 Add modifications from bhartsho (for easier python binding) 2011-06-17 10:34:19 -05:00
Ryan Pavlik
800a6c385b Bump version for release 2011-05-02 15:56:41 -05:00
Ryan Pavlik
43a2529be0 fix docs for new output redirector 2011-05-02 15:54:05 -05:00
Ryan Pavlik
3f0aeb98fd disconnect fully if we lose connection. 2011-05-02 15:53:53 -05:00
Ryan Pavlik
311700e7dc documentation for balance board 2011-05-02 13:48:01 -05:00
Ryan Pavlik
0ebc6b70fb saturate the interpolated balance data 2011-05-02 13:47:52 -05:00
Ryan Pavlik
9666e7a930 Fix reading of balance board data 2011-05-02 13:47:39 -05:00
Ryan Pavlik
ccabaadf46 check malloc results 2011-05-02 12:42:12 -05:00
Ryan Pavlik
b438352690 Initialize all of an array 2011-05-02 12:41:38 -05:00
Ryan Pavlik
32a5ba307a clean up linking on windows 2011-05-02 11:37:55 -05:00
Ryan Pavlik
e8853ee660 Make the error nicer when you don't have an adapter plugged in. 2011-05-02 10:38:50 -05:00
Ryan Pavlik
6c7fb6f12f improved platform definitions and definition checks 2011-05-02 10:32:26 -05:00
Ryan Pavlik
51674ce9de improve doxygen output. 2011-05-02 10:05:45 -05:00
Ryan Pavlik
eb2a133c18 do a similar include cleanup in the unix source file 2011-04-28 10:24:57 -05:00
Ryan Pavlik
3c8a0d715a change way of defining WCONST so internal workings aren't as visible in the public API 2011-04-28 10:23:16 -05:00
Ryan Pavlik
f853261785 apparently visual studio 2010's stdint.h isn't all it's cracked up to be. 2011-04-28 10:22:14 -05:00
Ryan Pavlik
51bf525b54 this internal header will never be c++, no need for the extern 2011-04-28 09:58:52 -05:00
Ryan Pavlik
83a030ccd1 clean up redundant stdio.h includes 2011-04-28 09:56:23 -05:00
Ryan Pavlik
d32490b857 fix a warning in release mode 2011-04-28 09:56:06 -05:00
Ryan Pavlik
bfcb2fe94c shuffle and clean up includes - builds on windows properly again 2011-04-28 09:49:39 -05:00
Ryan Pavlik
cf8ba2142e missing change of stdint header 2011-04-28 09:48:47 -05:00
Ryan Pavlik
17f4a2b555 workaround stdint header should not be in angle brackets 2011-04-28 09:48:40 -05:00
Ryan Pavlik
b949546225 handle the msvc stdint.h header differently (better) 2011-04-27 15:12:08 -05:00
Ryan Pavlik
4d6b5a5b05 improve doxygen mainpage 2011-04-27 12:23:40 -05:00
Ryan Pavlik
96fe3ae298 Add links to main page 2011-04-27 11:00:53 -05:00
Johannes Zarl
4829592601 Add support for redirecting or disabling messages from stdout to elsewhere.
The newly introduced procedure wiiuse_set_output can be used to set the FILE*
used for each of the loglevels LOGLEVEL_ERROR, LOGLEVEL_WARNING, LOGLEVEL_INFO,
and LOGLEVEL_DEBUG. Setting the logfile to 0 disables log output for a
loglevel. This adds the macro definition WIIUSE_HAS_OUTPUT_REDIRECTION, so
programs can test for the feature.

The internal log macros in definitions.h all honor this output redirection mechanism.
2011-04-27 08:33:36 -05:00