diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..ebff373 --- /dev/null +++ b/.classpath @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/.gradle/1.12/taskArtifacts/cache.properties b/.gradle/1.12/taskArtifacts/cache.properties new file mode 100644 index 0000000..fa353d1 --- /dev/null +++ b/.gradle/1.12/taskArtifacts/cache.properties @@ -0,0 +1 @@ +#Fri Jul 08 21:57:19 BST 2016 diff --git a/.gradle/1.12/taskArtifacts/cache.properties.lock b/.gradle/1.12/taskArtifacts/cache.properties.lock new file mode 100644 index 0000000..fe3be34 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/cache.properties.lock differ diff --git a/.gradle/1.12/taskArtifacts/fileHashes.bin b/.gradle/1.12/taskArtifacts/fileHashes.bin new file mode 100644 index 0000000..e46bc87 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/fileHashes.bin differ diff --git a/.gradle/1.12/taskArtifacts/fileSnapshots.bin b/.gradle/1.12/taskArtifacts/fileSnapshots.bin new file mode 100644 index 0000000..4aed3b5 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/fileSnapshots.bin differ diff --git a/.gradle/1.12/taskArtifacts/outputFileStates.bin b/.gradle/1.12/taskArtifacts/outputFileStates.bin new file mode 100644 index 0000000..0e53ee4 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/outputFileStates.bin differ diff --git a/.gradle/1.12/taskArtifacts/taskArtifacts.bin b/.gradle/1.12/taskArtifacts/taskArtifacts.bin new file mode 100644 index 0000000..04abeea Binary files /dev/null and b/.gradle/1.12/taskArtifacts/taskArtifacts.bin differ diff --git a/java/.project b/.project similarity index 90% rename from java/.project rename to .project index b60ae00..d20d6e4 100644 --- a/java/.project +++ b/.project @@ -1,18 +1,18 @@ - - - java.wiiusej - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.springsource.ide.eclipse.gradle.core.nature - org.eclipse.jdt.core.javanature - - + + + jlibwiiuse + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.springsource.ide.eclipse.gradle.core.nature + org.eclipse.jdt.core.javanature + + diff --git a/build/classes/main/wiiusej/WiiUseApi.class b/build/classes/main/wiiusej/WiiUseApi.class new file mode 100644 index 0000000..7eef7d0 Binary files /dev/null and b/build/classes/main/wiiusej/WiiUseApi.class differ diff --git a/build/classes/main/wiiusej/WiiUseApiManager.class b/build/classes/main/wiiusej/WiiUseApiManager.class new file mode 100644 index 0000000..0b93cb0 Binary files /dev/null and b/build/classes/main/wiiusej/WiiUseApiManager.class differ diff --git a/build/classes/main/wiiusej/Wiimote.class b/build/classes/main/wiiusej/Wiimote.class new file mode 100644 index 0000000..f49192c Binary files /dev/null and b/build/classes/main/wiiusej/Wiimote.class differ diff --git a/build/classes/main/wiiusej/utils/AccelerationExpansionEventPanel.class b/build/classes/main/wiiusej/utils/AccelerationExpansionEventPanel.class new file mode 100644 index 0000000..9acc097 Binary files /dev/null and b/build/classes/main/wiiusej/utils/AccelerationExpansionEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/AccelerationPanel.class b/build/classes/main/wiiusej/utils/AccelerationPanel.class new file mode 100644 index 0000000..7ef9f9a Binary files /dev/null and b/build/classes/main/wiiusej/utils/AccelerationPanel.class differ diff --git a/build/classes/main/wiiusej/utils/AccelerationWiimoteEventPanel.class b/build/classes/main/wiiusej/utils/AccelerationWiimoteEventPanel.class new file mode 100644 index 0000000..10a25c9 Binary files /dev/null and b/build/classes/main/wiiusej/utils/AccelerationWiimoteEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/ButtonsEventPanel.class b/build/classes/main/wiiusej/utils/ButtonsEventPanel.class new file mode 100644 index 0000000..3bd9812 Binary files /dev/null and b/build/classes/main/wiiusej/utils/ButtonsEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/ClassicControllerButtonsEventPanel.class b/build/classes/main/wiiusej/utils/ClassicControllerButtonsEventPanel.class new file mode 100644 index 0000000..f67f46a Binary files /dev/null and b/build/classes/main/wiiusej/utils/ClassicControllerButtonsEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/GForceExpansionEventPanel.class b/build/classes/main/wiiusej/utils/GForceExpansionEventPanel.class new file mode 100644 index 0000000..9a6c9ae Binary files /dev/null and b/build/classes/main/wiiusej/utils/GForceExpansionEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/GForcePanel.class b/build/classes/main/wiiusej/utils/GForcePanel.class new file mode 100644 index 0000000..4b636e9 Binary files /dev/null and b/build/classes/main/wiiusej/utils/GForcePanel.class differ diff --git a/build/classes/main/wiiusej/utils/GForceWiimoteEventPanel.class b/build/classes/main/wiiusej/utils/GForceWiimoteEventPanel.class new file mode 100644 index 0000000..22b6d9a Binary files /dev/null and b/build/classes/main/wiiusej/utils/GForceWiimoteEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/GuitarHero3ButtonsEventPanel.class b/build/classes/main/wiiusej/utils/GuitarHero3ButtonsEventPanel.class new file mode 100644 index 0000000..ee4841c Binary files /dev/null and b/build/classes/main/wiiusej/utils/GuitarHero3ButtonsEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/GuitarHeroJoystickEventPanel.class b/build/classes/main/wiiusej/utils/GuitarHeroJoystickEventPanel.class new file mode 100644 index 0000000..8691a9c Binary files /dev/null and b/build/classes/main/wiiusej/utils/GuitarHeroJoystickEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/IRPanel.class b/build/classes/main/wiiusej/utils/IRPanel.class new file mode 100644 index 0000000..0c0362d Binary files /dev/null and b/build/classes/main/wiiusej/utils/IRPanel.class differ diff --git a/build/classes/main/wiiusej/utils/JoystickEventPanel.class b/build/classes/main/wiiusej/utils/JoystickEventPanel.class new file mode 100644 index 0000000..20f7b37 Binary files /dev/null and b/build/classes/main/wiiusej/utils/JoystickEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/NunchukJoystickEventPanel.class b/build/classes/main/wiiusej/utils/NunchukJoystickEventPanel.class new file mode 100644 index 0000000..283475a Binary files /dev/null and b/build/classes/main/wiiusej/utils/NunchukJoystickEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/OrientationExpansionEventPanel.class b/build/classes/main/wiiusej/utils/OrientationExpansionEventPanel.class new file mode 100644 index 0000000..08bd6e1 Binary files /dev/null and b/build/classes/main/wiiusej/utils/OrientationExpansionEventPanel.class differ diff --git a/build/classes/main/wiiusej/utils/OrientationPanel.class b/build/classes/main/wiiusej/utils/OrientationPanel.class new file mode 100644 index 0000000..46bd7a5 Binary files /dev/null and b/build/classes/main/wiiusej/utils/OrientationPanel.class differ diff --git a/build/classes/main/wiiusej/utils/OrientationWiimoteEventPanel.class b/build/classes/main/wiiusej/utils/OrientationWiimoteEventPanel.class new file mode 100644 index 0000000..6ec131d Binary files /dev/null and b/build/classes/main/wiiusej/utils/OrientationWiimoteEventPanel.class differ diff --git a/build/classes/main/wiiusej/values/GForce.class b/build/classes/main/wiiusej/values/GForce.class new file mode 100644 index 0000000..7bd5f33 Binary files /dev/null and b/build/classes/main/wiiusej/values/GForce.class differ diff --git a/build/classes/main/wiiusej/values/IRSource.class b/build/classes/main/wiiusej/values/IRSource.class new file mode 100644 index 0000000..c2820a7 Binary files /dev/null and b/build/classes/main/wiiusej/values/IRSource.class differ diff --git a/build/classes/main/wiiusej/values/Orientation.class b/build/classes/main/wiiusej/values/Orientation.class new file mode 100644 index 0000000..1818b87 Binary files /dev/null and b/build/classes/main/wiiusej/values/Orientation.class differ diff --git a/build/classes/main/wiiusej/values/RawAcceleration.class b/build/classes/main/wiiusej/values/RawAcceleration.class new file mode 100644 index 0000000..e6ab698 Binary files /dev/null and b/build/classes/main/wiiusej/values/RawAcceleration.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/GenericEvent.class b/build/classes/main/wiiusej/wiiusejevents/GenericEvent.class new file mode 100644 index 0000000..5e0dd6a Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/GenericEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.class new file mode 100644 index 0000000..87e4aa2 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.class new file mode 100644 index 0000000..38e5c5a Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.class new file mode 100644 index 0000000..859b061 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.class new file mode 100644 index 0000000..9185176 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.class new file mode 100644 index 0000000..fd8aab2 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.class new file mode 100644 index 0000000..9f793cb Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/IREvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/IREvent.class new file mode 100644 index 0000000..3c13acb Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/IREvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/JoystickEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/JoystickEvent.class new file mode 100644 index 0000000..dcc8a20 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/JoystickEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.class new file mode 100644 index 0000000..b1fdd76 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.class new file mode 100644 index 0000000..19561bc Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukEvent.class new file mode 100644 index 0000000..2b171b3 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/NunchukEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.class b/build/classes/main/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.class new file mode 100644 index 0000000..d29955a Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/utils/EventsGatherer.class b/build/classes/main/wiiusej/wiiusejevents/utils/EventsGatherer.class new file mode 100644 index 0000000..49409c0 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/utils/EventsGatherer.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/utils/WiiUseApiListener.class b/build/classes/main/wiiusej/wiiusejevents/utils/WiiUseApiListener.class new file mode 100644 index 0000000..938d85c Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/utils/WiiUseApiListener.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/utils/WiimoteListener.class b/build/classes/main/wiiusej/wiiusejevents/utils/WiimoteListener.class new file mode 100644 index 0000000..ef4f36c Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/utils/WiimoteListener.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.class new file mode 100644 index 0000000..0ff80b1 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.class new file mode 100644 index 0000000..3697e0d Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.class new file mode 100644 index 0000000..0fc0d22 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.class new file mode 100644 index 0000000..13b3b5e Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.class new file mode 100644 index 0000000..2cd0ae6 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.class new file mode 100644 index 0000000..da4d4de Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.class new file mode 100644 index 0000000..373305a Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.class new file mode 100644 index 0000000..1c1082b Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.class new file mode 100644 index 0000000..f454ac6 Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.class differ diff --git a/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.class b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.class new file mode 100644 index 0000000..2768caf Binary files /dev/null and b/build/classes/main/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.class differ diff --git a/c/.cproject b/c/.cproject deleted file mode 100644 index 9f2a7e2..0000000 --- a/c/.cproject +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/c/.project b/c/.project deleted file mode 100644 index e3a422a..0000000 --- a/c/.project +++ /dev/null @@ -1,71 +0,0 @@ - - - cpp.wiiusej - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - ?name? - - - - org.eclipse.cdt.make.core.append_environment - true - - - org.eclipse.cdt.make.core.buildArguments - - - - org.eclipse.cdt.make.core.buildCommand - make - - - org.eclipse.cdt.make.core.buildLocation - ${workspace_loc:/WiiuseJ/Debug} - - - org.eclipse.cdt.make.core.contents - org.eclipse.cdt.make.core.activeConfigSettings - - - org.eclipse.cdt.make.core.enableAutoBuild - false - - - org.eclipse.cdt.make.core.enableCleanBuild - true - - - org.eclipse.cdt.make.core.enableFullBuild - true - - - org.eclipse.cdt.make.core.stopOnError - true - - - org.eclipse.cdt.make.core.useDefaultBuildCmd - true - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - org.eclipse.cdt.core.ccnature - - diff --git a/c/Debug/copy.bat b/c/Debug/copy.bat deleted file mode 100644 index 8ce62ea..0000000 --- a/c/Debug/copy.bat +++ /dev/null @@ -1 +0,0 @@ -copy wiiusej.dll ..\..\..\java\wiiusej\wiiusej.dll \ No newline at end of file diff --git a/c/Release/copy.bat b/c/Release/copy.bat deleted file mode 100644 index 8ce62ea..0000000 --- a/c/Release/copy.bat +++ /dev/null @@ -1 +0,0 @@ -copy wiiusej.dll ..\..\..\java\wiiusej\wiiusej.dll \ No newline at end of file diff --git a/c/Release/wiiusej.dll b/c/Release/wiiusej.dll deleted file mode 100644 index c50c645..0000000 Binary files a/c/Release/wiiusej.dll and /dev/null differ diff --git a/c/include/wiiuse.h b/c/include/wiiuse.h deleted file mode 100644 index a9a22f7..0000000 --- a/c/include/wiiuse.h +++ /dev/null @@ -1,710 +0,0 @@ -/* - * wiiuse - * - * Written By: - * Michael Laforest < para > - * Email: < thepara (--AT--) g m a i l [--DOT--] com > - * - * Copyright 2006-2007 - * - * This file is part of wiiuse. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * $Header$ - * - */ - -/** - * @file - * - * @brief API header file. - * - * If this file is included from inside the wiiuse source - * and not from a third party program, then wiimote_internal.h - * is also included which extends this file. - */ - -#ifndef WIIUSE_H_INCLUDED -#define WIIUSE_H_INCLUDED - -#ifdef _WIN32 - /* windows */ - #include -#else - /* nix */ - #include -#endif - -#ifdef WIIUSE_INTERNAL_H_INCLUDED - #define WCONST -#else - #define WCONST const -#endif - -/* led bit masks */ -#define WIIMOTE_LED_NONE 0x00 -#define WIIMOTE_LED_1 0x10 -#define WIIMOTE_LED_2 0x20 -#define WIIMOTE_LED_3 0x40 -#define WIIMOTE_LED_4 0x80 - -/* button codes */ -#define WIIMOTE_BUTTON_TWO 0x0001 -#define WIIMOTE_BUTTON_ONE 0x0002 -#define WIIMOTE_BUTTON_B 0x0004 -#define WIIMOTE_BUTTON_A 0x0008 -#define WIIMOTE_BUTTON_MINUS 0x0010 -#define WIIMOTE_BUTTON_ZACCEL_BIT6 0x0020 -#define WIIMOTE_BUTTON_ZACCEL_BIT7 0x0040 -#define WIIMOTE_BUTTON_HOME 0x0080 -#define WIIMOTE_BUTTON_LEFT 0x0100 -#define WIIMOTE_BUTTON_RIGHT 0x0200 -#define WIIMOTE_BUTTON_DOWN 0x0400 -#define WIIMOTE_BUTTON_UP 0x0800 -#define WIIMOTE_BUTTON_PLUS 0x1000 -#define WIIMOTE_BUTTON_ZACCEL_BIT4 0x2000 -#define WIIMOTE_BUTTON_ZACCEL_BIT5 0x4000 -#define WIIMOTE_BUTTON_UNKNOWN 0x8000 -#define WIIMOTE_BUTTON_ALL 0x1F9F - -/* nunchul button codes */ -#define NUNCHUK_BUTTON_Z 0x01 -#define NUNCHUK_BUTTON_C 0x02 -#define NUNCHUK_BUTTON_ALL 0x03 - -/* classic controller button codes */ -#define CLASSIC_CTRL_BUTTON_UP 0x0001 -#define CLASSIC_CTRL_BUTTON_LEFT 0x0002 -#define CLASSIC_CTRL_BUTTON_ZR 0x0004 -#define CLASSIC_CTRL_BUTTON_X 0x0008 -#define CLASSIC_CTRL_BUTTON_A 0x0010 -#define CLASSIC_CTRL_BUTTON_Y 0x0020 -#define CLASSIC_CTRL_BUTTON_B 0x0040 -#define CLASSIC_CTRL_BUTTON_ZL 0x0080 -#define CLASSIC_CTRL_BUTTON_FULL_R 0x0200 -#define CLASSIC_CTRL_BUTTON_PLUS 0x0400 -#define CLASSIC_CTRL_BUTTON_HOME 0x0800 -#define CLASSIC_CTRL_BUTTON_MINUS 0x1000 -#define CLASSIC_CTRL_BUTTON_FULL_L 0x2000 -#define CLASSIC_CTRL_BUTTON_DOWN 0x4000 -#define CLASSIC_CTRL_BUTTON_RIGHT 0x8000 -#define CLASSIC_CTRL_BUTTON_ALL 0xFEFF - -/* guitar hero 3 button codes */ -#define GUITAR_HERO_3_BUTTON_STRUM_UP 0x0001 -#define GUITAR_HERO_3_BUTTON_YELLOW 0x0008 -#define GUITAR_HERO_3_BUTTON_GREEN 0x0010 -#define GUITAR_HERO_3_BUTTON_BLUE 0x0020 -#define GUITAR_HERO_3_BUTTON_RED 0x0040 -#define GUITAR_HERO_3_BUTTON_ORANGE 0x0080 -#define GUITAR_HERO_3_BUTTON_PLUS 0x0400 -#define GUITAR_HERO_3_BUTTON_MINUS 0x1000 -#define GUITAR_HERO_3_BUTTON_STRUM_DOWN 0x4000 -#define GUITAR_HERO_3_BUTTON_ALL 0xFEFF - - -/* wiimote option flags */ -#define WIIUSE_SMOOTHING 0x01 -#define WIIUSE_CONTINUOUS 0x02 -#define WIIUSE_ORIENT_THRESH 0x04 -#define WIIUSE_INIT_FLAGS (WIIUSE_SMOOTHING | WIIUSE_ORIENT_THRESH) - -#define WIIUSE_ORIENT_PRECISION 100.0f - -/* expansion codes */ -#define EXP_NONE 0 -#define EXP_NUNCHUK 1 -#define EXP_CLASSIC 2 -#define EXP_GUITAR_HERO_3 3 -#define EXP_BALANCE_BOARD 4 - -/* IR correction types */ -typedef enum ir_position_t { - WIIUSE_IR_ABOVE, - WIIUSE_IR_BELOW -} ir_position_t; - -/** - * @brief Check if a button is pressed. - * @param dev Pointer to a wiimote_t or expansion structure. - * @param button The button you are interested in. - * @return 1 if the button is pressed, 0 if not. - */ -#define IS_PRESSED(dev, button) ((dev->btns & button) == button) - -/** - * @brief Check if a button is being held. - * @param dev Pointer to a wiimote_t or expansion structure. - * @param button The button you are interested in. - * @return 1 if the button is held, 0 if not. - */ -#define IS_HELD(dev, button) ((dev->btns_held & button) == button) - -/** - * @brief Check if a button is released on this event. \n\n - * This does not mean the button is not pressed, it means \n - * this button was just now released. - * @param dev Pointer to a wiimote_t or expansion structure. - * @param button The button you are interested in. - * @return 1 if the button is released, 0 if not. - * - */ -#define IS_RELEASED(dev, button) ((dev->btns_released & button) == button) - -/** - * @brief Check if a button has just been pressed this event. - * @param dev Pointer to a wiimote_t or expansion structure. - * @param button The button you are interested in. - * @return 1 if the button is pressed, 0 if not. - */ -#define IS_JUST_PRESSED(dev, button) (IS_PRESSED(dev, button) && !IS_HELD(dev, button)) - -/** - * @brief Return the IR sensitivity level. - * @param wm Pointer to a wiimote_t structure. - * @param lvl [out] Pointer to an int that will hold the level setting. - * If no level is set 'lvl' will be set to 0. - */ -#define WIIUSE_GET_IR_SENSITIVITY(dev, lvl) \ - do { \ - if ((wm->state & 0x0200) == 0x0200) *lvl = 1; \ - else if ((wm->state & 0x0400) == 0x0400) *lvl = 2; \ - else if ((wm->state & 0x0800) == 0x0800) *lvl = 3; \ - else if ((wm->state & 0x1000) == 0x1000) *lvl = 4; \ - else if ((wm->state & 0x2000) == 0x2000) *lvl = 5; \ - else *lvl = 0; \ - } while (0) - -#define WIIUSE_USING_ACC(wm) ((wm->state & 0x020) == 0x020) -#define WIIUSE_USING_EXP(wm) ((wm->state & 0x040) == 0x040) -#define WIIUSE_USING_IR(wm) ((wm->state & 0x080) == 0x080) -#define WIIUSE_USING_SPEAKER(wm) ((wm->state & 0x100) == 0x100) - -#define WIIUSE_IS_LED_SET(wm, num) ((wm->leds & WIIMOTE_LED_##num) == WIIMOTE_LED_##num) - -/* - * Largest known payload is 21 bytes. - * Add 2 for the prefix and round up to a power of 2. - */ -#define MAX_PAYLOAD 32 - -/* - * This is left over from an old hack, but it may actually - * be a useful feature to keep so it wasn't removed. - */ -#ifdef WIN32 - #define WIIMOTE_DEFAULT_TIMEOUT 10 - #define WIIMOTE_EXP_TIMEOUT 10 -#endif - -typedef unsigned char byte; -typedef char sbyte; - -struct wiimote_t; -struct vec3b_t; -struct orient_t; -struct gforce_t; - - -/** - * @brief Callback that handles a read event. - * - * @param wm Pointer to a wiimote_t structure. - * @param data Pointer to the filled data block. - * @param len Length in bytes of the data block. - * - * @see wiiuse_init() - * - * A registered function of this type is called automatically by the wiiuse - * library when the wiimote has returned the full data requested by a previous - * call to wiiuse_read_data(). - */ -typedef void (*wiiuse_read_cb)(struct wiimote_t* wm, byte* data, unsigned short len); - - -/** - * @struct read_req_t - * @brief Data read request structure. - */ -struct read_req_t { - wiiuse_read_cb cb; /**< read data callback */ - byte* buf; /**< buffer where read data is written */ - unsigned int addr; /**< the offset that the read started at */ - unsigned short size; /**< the length of the data read */ - unsigned short wait; /**< num bytes still needed to finish read */ - byte dirty; /**< set to 1 if not using callback and needs to be cleaned up */ - - struct read_req_t* next; /**< next read request in the queue */ -}; - - -/** - * @struct vec2b_t - * @brief Unsigned x,y byte vector. - */ -typedef struct vec2b_t { - byte x, y; -} vec2b_t; - - -/** - * @struct vec3b_t - * @brief Unsigned x,y,z byte vector. - */ -typedef struct vec3b_t { - byte x, y, z; -} vec3b_t; - - -/** - * @struct vec3f_t - * @brief Signed x,y,z float struct. - */ -typedef struct vec3f_t { - float x, y, z; -} vec3f_t; - - -/** - * @struct orient_t - * @brief Orientation struct. - * - * Yaw, pitch, and roll range from -180 to 180 degrees. - */ -typedef struct orient_t { - float roll; /**< roll, this may be smoothed if enabled */ - float pitch; /**< pitch, this may be smoothed if enabled */ - float yaw; - - float a_roll; /**< absolute roll, unsmoothed */ - float a_pitch; /**< absolute pitch, unsmoothed */ -} orient_t; - - -/** - * @struct gforce_t - * @brief Gravity force struct. - */ -typedef struct gforce_t { - float x, y, z; -} gforce_t; - - -/** - * @struct accel_t - * @brief Accelerometer struct. For any device with an accelerometer. - */ -typedef struct accel_t { - struct vec3b_t cal_zero; /**< zero calibration */ - struct vec3b_t cal_g; /**< 1g difference around 0cal */ - - float st_roll; /**< last smoothed roll value */ - float st_pitch; /**< last smoothed roll pitch */ - float st_alpha; /**< alpha value for smoothing [0-1] */ -} accel_t; - - -/** - * @struct ir_dot_t - * @brief A single IR source. - */ -typedef struct ir_dot_t { - byte visible; /**< if the IR source is visible */ - - unsigned int x; /**< interpolated X coordinate */ - unsigned int y; /**< interpolated Y coordinate */ - - short rx; /**< raw X coordinate (0-1023) */ - short ry; /**< raw Y coordinate (0-767) */ - - byte order; /**< increasing order by x-axis value */ - - byte size; /**< size of the IR dot (0-15) */ -} ir_dot_t; - - -/** - * @enum aspect_t - * @brief Screen aspect ratio. - */ -typedef enum aspect_t { - WIIUSE_ASPECT_4_3, - WIIUSE_ASPECT_16_9 -} aspect_t; - - -/** - * @struct ir_t - * @brief IR struct. Hold all data related to the IR tracking. - */ -typedef struct ir_t { - struct ir_dot_t dot[4]; /**< IR dots */ - byte num_dots; /**< number of dots at this time */ - - enum aspect_t aspect; /**< aspect ratio of the screen */ - - enum ir_position_t pos; /**< IR sensor bar position */ - - unsigned int vres[2]; /**< IR virtual screen resolution */ - int offset[2]; /**< IR XY correction offset */ - int state; /**< keeps track of the IR state */ - - int ax; /**< absolute X coordinate */ - int ay; /**< absolute Y coordinate */ - - int x; /**< calculated X coordinate */ - int y; /**< calculated Y coordinate */ - - float distance; /**< pixel distance between first 2 dots*/ - float z; /**< calculated distance */ -} ir_t; - - -/** - * @struct speaker_t - */ -typedef struct speaker_t { - byte format; - byte rate; - byte freq; - byte vol; -} speaker_t; - - -/** - * @struct joystick_t - * @brief Joystick calibration structure. - * - * The angle \a ang is relative to the positive y-axis into quadrant I - * and ranges from 0 to 360 degrees. So if the joystick is held straight - * upwards then angle is 0 degrees. If it is held to the right it is 90, - * down is 180, and left is 270. - * - * The magnitude \a mag is the distance from the center to where the - * joystick is being held. The magnitude ranges from 0 to 1. - * If the joystick is only slightly tilted from the center the magnitude - * will be low, but if it is closer to the outter edge the value will - * be higher. - */ -typedef struct joystick_t { - struct vec2b_t max; /**< maximum joystick values */ - struct vec2b_t min; /**< minimum joystick values */ - struct vec2b_t center; /**< center joystick values */ - - float ang; /**< angle the joystick is being held */ - float mag; /**< magnitude of the joystick (range 0-1) */ -} joystick_t; - - -/** - * @struct nunchuk_t - * @brief Nunchuk expansion device. - */ -typedef struct nunchuk_t { - struct accel_t accel_calib; /**< nunchuk accelerometer calibration */ - struct joystick_t js; /**< joystick calibration */ - - int* flags; /**< options flag (points to wiimote_t.flags) */ - - byte btns; /**< what buttons have just been pressed */ - byte btns_held; /**< what buttons are being held down */ - byte btns_released; /**< what buttons were just released this */ - - float orient_threshold; /**< threshold for orient to generate an event */ - int accel_threshold; /**< threshold for accel to generate an event */ - - struct vec3b_t accel; /**< current raw acceleration data */ - struct orient_t orient; /**< current orientation on each axis */ - struct gforce_t gforce; /**< current gravity forces on each axis */ -} nunchuk_t; - - -/** - * @struct classic_ctrl_t - * @brief Classic controller expansion device. - */ -typedef struct classic_ctrl_t { - short btns; /**< what buttons have just been pressed */ - short btns_held; /**< what buttons are being held down */ - short btns_released; /**< what buttons were just released this */ - - float r_shoulder; /**< right shoulder button (range 0-1) */ - float l_shoulder; /**< left shoulder button (range 0-1) */ - - struct joystick_t ljs; /**< left joystick calibration */ - struct joystick_t rjs; /**< right joystick calibration */ -} classic_ctrl_t; - - -/** - * @struct guitar_hero_3_t - * @brief Guitar Hero 3 expansion device. - */ -typedef struct guitar_hero_3_t { - short btns; /**< what buttons have just been pressed */ - short btns_held; /**< what buttons are being held down */ - short btns_released; /**< what buttons were just released this */ - - float whammy_bar; /**< whammy bar (range 0-1) */ - - struct joystick_t js; /**< joystick calibration */ -} guitar_hero_3_t; - - -/** - * @struct balance_board_data_t - * @brief Balance board l/r, t/b corner data data. - */ -typedef struct balance_board_data_t { - int tr; - int br; - int tl; - int bl; -} balance_board_data_t; - - -/** - * @struct balance_board_t - * @brief Balance board expansion device. - */ -typedef struct balance_board_t { - float tr; /** Top Right weight */ - float br; /** Bottom Right weight */ - float tl; /** Top Left weight */ - float bl; /** Bottom Left weight */ - struct balance_board_data_t raw; /** Raw actual values */ - struct balance_board_data_t cal_0; /** Calibration values at 0kg */ - struct balance_board_data_t cal_17; /** Calibration values at 17kg */ - struct balance_board_data_t cal_34; /** Calibration values at 34kg */ -} balance_board_t; - - -/** - * @struct expansion_t - * @brief Generic expansion device plugged into wiimote. - */ -typedef struct expansion_t { - int type; /**< type of expansion attached */ - - union { - struct nunchuk_t nunchuk; - struct classic_ctrl_t classic; - struct guitar_hero_3_t gh3; - struct balance_board_t bb; - }; -} expansion_t; - - -/** - * @enum win32_bt_stack_t - * @brief Available bluetooth stacks for Windows. - */ -typedef enum win_bt_stack_t { - WIIUSE_STACK_UNKNOWN, - WIIUSE_STACK_MS, - WIIUSE_STACK_BLUESOLEIL -} win_bt_stack_t; - - -/** - * @struct wiimote_state_t - * @brief Significant data from the previous event. - */ -typedef struct wiimote_state_t { - /* expansion_t */ - float exp_ljs_ang; - float exp_rjs_ang; - float exp_ljs_mag; - float exp_rjs_mag; - unsigned short exp_btns; - struct orient_t exp_orient; - struct vec3b_t exp_accel; - float exp_r_shoulder; - float exp_l_shoulder; - struct balance_board_data_t exp_bb_raw; - - /* ir_t */ - int ir_ax; - int ir_ay; - float ir_distance; - - struct orient_t orient; - unsigned short btns; - - struct vec3b_t accel; -} wiimote_state_t; - - -/** - * @enum WIIUSE_EVENT_TYPE - * @brief Events that wiiuse can generate from a poll. - */ -typedef enum WIIUSE_EVENT_TYPE { - WIIUSE_NONE = 0, - WIIUSE_EVENT, - WIIUSE_STATUS, - WIIUSE_CONNECT, - WIIUSE_DISCONNECT, - WIIUSE_UNEXPECTED_DISCONNECT, - WIIUSE_READ_DATA, - WIIUSE_NUNCHUK_INSERTED, - WIIUSE_NUNCHUK_REMOVED, - WIIUSE_CLASSIC_CTRL_INSERTED, - WIIUSE_CLASSIC_CTRL_REMOVED, - WIIUSE_GUITAR_HERO_3_CTRL_INSERTED, - WIIUSE_GUITAR_HERO_3_CTRL_REMOVED, - WIIUSE_BALANCE_BOARD_CTRL_INSERTED, - WIIUSE_BALANCE_BOARD_CTRL_REMOVED -} WIIUSE_EVENT_TYPE; - -/** - * @struct wiimote_t - * @brief Wiimote structure. - */ -typedef struct wiimote_t { - WCONST int unid; /**< user specified id */ - - #ifndef WIN32 - WCONST bdaddr_t bdaddr; /**< bt address */ - WCONST char bdaddr_str[18]; /**< readable bt address */ - WCONST int out_sock; /**< output socket */ - WCONST int in_sock; /**< input socket */ - #else - WCONST HANDLE dev_handle; /**< HID handle */ - WCONST OVERLAPPED hid_overlap; /**< overlap handle */ - WCONST enum win_bt_stack_t stack; /**< type of bluetooth stack to use */ - WCONST int timeout; /**< read timeout */ - WCONST byte normal_timeout; /**< normal timeout */ - WCONST byte exp_timeout; /**< timeout for expansion handshake */ - #endif - - WCONST int state; /**< various state flags */ - WCONST byte leds; /**< currently lit leds */ - WCONST float battery_level; /**< battery level */ - - WCONST int flags; /**< options flag */ - - WCONST byte handshake_state; /**< the state of the connection handshake */ - - WCONST struct read_req_t* read_req; /**< list of data read requests */ - WCONST struct accel_t accel_calib; /**< wiimote accelerometer calibration */ - WCONST struct expansion_t exp; /**< wiimote expansion device */ - - WCONST struct vec3b_t accel; /**< current raw acceleration data */ - WCONST struct orient_t orient; /**< current orientation on each axis */ - WCONST struct gforce_t gforce; /**< current gravity forces on each axis */ - - WCONST struct ir_t ir; /**< IR data */ - WCONST struct speaker_t speaker; /**< speaker */ - - WCONST unsigned short btns; /**< what buttons have just been pressed */ - WCONST unsigned short btns_held; /**< what buttons are being held down */ - WCONST unsigned short btns_released; /**< what buttons were just released this */ - - WCONST float orient_threshold; /**< threshold for orient to generate an event */ - WCONST int accel_threshold; /**< threshold for accel to generate an event */ - - WCONST struct wiimote_state_t lstate; /**< last saved state */ - - WCONST WIIUSE_EVENT_TYPE event; /**< type of event that occured */ - WCONST byte event_buf[MAX_PAYLOAD]; /**< event buffer */ -} wiimote; - - -/***************************************** - * - * Include API specific stuff - * - *****************************************/ - -#ifdef _WIN32 - #define WIIUSE_EXPORT_DECL __declspec(dllexport) - #define WIIUSE_IMPORT_DECL __declspec(dllimport) -#else - #define WIIUSE_EXPORT_DECL - #define WIIUSE_IMPORT_DECL -#endif - -#ifdef WIIUSE_COMPILE_LIB - #define WIIUSE_EXPORT WIIUSE_EXPORT_DECL -#else - #define WIIUSE_EXPORT WIIUSE_IMPORT_DECL -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* wiiuse.c */ -WIIUSE_EXPORT extern const char* wiiuse_version(); - -WIIUSE_EXPORT extern struct wiimote_t** wiiuse_init(int wiimotes); -WIIUSE_EXPORT extern void wiiuse_disconnected(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_cleanup(struct wiimote_t** wm, int wiimotes); -WIIUSE_EXPORT extern void wiiuse_rumble(struct wiimote_t* wm, int status); -WIIUSE_EXPORT extern void wiiuse_toggle_rumble(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_set_leds(struct wiimote_t* wm, int leds); -WIIUSE_EXPORT extern void wiiuse_motion_sensing(struct wiimote_t* wm, int status); -WIIUSE_EXPORT extern int wiiuse_read_data(struct wiimote_t* wm, byte* buffer, unsigned int offset, unsigned short len); -WIIUSE_EXPORT extern int wiiuse_write_data(struct wiimote_t* wm, unsigned int addr, byte* data, byte len); -WIIUSE_EXPORT extern void wiiuse_status(struct wiimote_t* wm); -WIIUSE_EXPORT extern struct wiimote_t* wiiuse_get_by_id(struct wiimote_t** wm, int wiimotes, int unid); -WIIUSE_EXPORT extern int wiiuse_set_flags(struct wiimote_t* wm, int enable, int disable); -WIIUSE_EXPORT extern float wiiuse_set_smooth_alpha(struct wiimote_t* wm, float alpha); -WIIUSE_EXPORT extern void wiiuse_set_bluetooth_stack(struct wiimote_t** wm, int wiimotes, enum win_bt_stack_t type); -WIIUSE_EXPORT extern void wiiuse_set_orient_threshold(struct wiimote_t* wm, float threshold); -WIIUSE_EXPORT extern void wiiuse_resync(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_set_timeout(struct wiimote_t** wm, int wiimotes, byte normal_timeout, byte exp_timeout); -WIIUSE_EXPORT extern void wiiuse_set_accel_threshold(struct wiimote_t* wm, int threshold); - -/* connect.c */ -WIIUSE_EXPORT extern int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout); -WIIUSE_EXPORT extern int wiiuse_connect(struct wiimote_t** wm, int wiimotes); -WIIUSE_EXPORT extern void wiiuse_disconnect(struct wiimote_t* wm); - -/* events.c */ -WIIUSE_EXPORT extern int wiiuse_poll(struct wiimote_t** wm, int wiimotes); - -/* ir.c */ -WIIUSE_EXPORT extern void wiiuse_set_ir(struct wiimote_t* wm, int status); -WIIUSE_EXPORT extern void wiiuse_set_ir_vres(struct wiimote_t* wm, unsigned int x, unsigned int y); -WIIUSE_EXPORT extern void wiiuse_set_ir_position(struct wiimote_t* wm, enum ir_position_t pos); -WIIUSE_EXPORT extern void wiiuse_set_aspect_ratio(struct wiimote_t* wm, enum aspect_t aspect); -WIIUSE_EXPORT extern void wiiuse_set_ir_sensitivity(struct wiimote_t* wm, int level); - -/* nunchuk.c */ -WIIUSE_EXPORT extern void wiiuse_set_nunchuk_orient_threshold(struct wiimote_t* wm, float threshold); -WIIUSE_EXPORT extern void wiiuse_set_nunchuk_accel_threshold(struct wiimote_t* wm, int threshold); - -/* speaker.c */ -WIIUSE_EXPORT extern void wiiuse_speaker_enable(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_disable(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_mute(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_unmute(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_activate(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_deactivate(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_format(struct wiimote_t* wm, byte format); -WIIUSE_EXPORT extern void wiiuse_speaker_volume(struct wiimote_t* wm, double vol); -WIIUSE_EXPORT extern void wiiuse_speaker_rate(struct wiimote_t* wm, byte rate, byte freq); -WIIUSE_EXPORT extern void wiiuse_speaker_config(struct wiimote_t* wm); -WIIUSE_EXPORT extern void wiiuse_speaker_data(struct wiimote_t* wm, byte* data, int len); - -#ifdef __cplusplus -} -#endif - - -#endif /* WIIUSE_H_INCLUDED */ - diff --git a/c/lib/wiiuse.lib b/c/lib/wiiuse.lib deleted file mode 100644 index b9cc79d..0000000 Binary files a/c/lib/wiiuse.lib and /dev/null differ diff --git a/java/.classpath b/java/.classpath deleted file mode 100644 index 50660d7..0000000 --- a/java/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/java/build.gradle b/java/build.gradle deleted file mode 100644 index e69de29..0000000 diff --git a/java/wiiuse.dll b/java/wiiuse.dll deleted file mode 100644 index 512c0cc..0000000 Binary files a/java/wiiuse.dll and /dev/null differ diff --git a/java/wiiusej.dll b/java/wiiusej.dll deleted file mode 100644 index 12261bc..0000000 Binary files a/java/wiiusej.dll and /dev/null differ diff --git a/c/src/wiiusej_WiiUseApi.c b/src/main/c/wiiusej_WiiUseApi.c similarity index 100% rename from c/src/wiiusej_WiiUseApi.c rename to src/main/c/wiiusej_WiiUseApi.c diff --git a/c/src/wiiusej_WiiUseApi.h b/src/main/c/wiiusej_WiiUseApi.h similarity index 100% rename from c/src/wiiusej_WiiUseApi.h rename to src/main/c/wiiusej_WiiUseApi.h diff --git a/java/src/main/java/wiiusej/WiiUseApi.java b/src/main/java/wiiusej/WiiUseApi.java similarity index 100% rename from java/src/main/java/wiiusej/WiiUseApi.java rename to src/main/java/wiiusej/WiiUseApi.java diff --git a/java/src/main/java/wiiusej/WiiUseApiManager.java b/src/main/java/wiiusej/WiiUseApiManager.java similarity index 100% rename from java/src/main/java/wiiusej/WiiUseApiManager.java rename to src/main/java/wiiusej/WiiUseApiManager.java diff --git a/java/src/main/java/wiiusej/Wiimote.java b/src/main/java/wiiusej/Wiimote.java similarity index 100% rename from java/src/main/java/wiiusej/Wiimote.java rename to src/main/java/wiiusej/Wiimote.java diff --git a/java/src/main/java/wiiusej/values/Acceleration.java b/src/main/java/wiiusej/values/Acceleration.java similarity index 100% rename from java/src/main/java/wiiusej/values/Acceleration.java rename to src/main/java/wiiusej/values/Acceleration.java diff --git a/java/src/main/java/wiiusej/values/Calibration.java b/src/main/java/wiiusej/values/Calibration.java similarity index 100% rename from java/src/main/java/wiiusej/values/Calibration.java rename to src/main/java/wiiusej/values/Calibration.java diff --git a/java/src/main/java/wiiusej/values/GForce.java b/src/main/java/wiiusej/values/GForce.java similarity index 100% rename from java/src/main/java/wiiusej/values/GForce.java rename to src/main/java/wiiusej/values/GForce.java diff --git a/java/src/main/java/wiiusej/values/IRSource.java b/src/main/java/wiiusej/values/IRSource.java similarity index 100% rename from java/src/main/java/wiiusej/values/IRSource.java rename to src/main/java/wiiusej/values/IRSource.java diff --git a/java/src/main/java/wiiusej/values/Orientation.java b/src/main/java/wiiusej/values/Orientation.java similarity index 100% rename from java/src/main/java/wiiusej/values/Orientation.java rename to src/main/java/wiiusej/values/Orientation.java diff --git a/java/src/main/java/wiiusej/values/RawAcceleration.java b/src/main/java/wiiusej/values/RawAcceleration.java similarity index 100% rename from java/src/main/java/wiiusej/values/RawAcceleration.java rename to src/main/java/wiiusej/values/RawAcceleration.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/GenericEvent.java b/src/main/java/wiiusej/wiiusejevents/GenericEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/GenericEvent.java rename to src/main/java/wiiusej/wiiusejevents/GenericEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/BalanceBoardEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/ButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/ClassicControllerEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/ExpansionEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/GuitarHeroEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/IREvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/IREvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/IREvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/IREvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/JoystickEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/JoystickEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/JoystickEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/JoystickEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/MotionSensingEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/NunchukEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.java b/src/main/java/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.java rename to src/main/java/wiiusej/wiiusejevents/physicalevents/WiimoteButtonsEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/utils/EventsGatherer.java b/src/main/java/wiiusej/wiiusejevents/utils/EventsGatherer.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/utils/EventsGatherer.java rename to src/main/java/wiiusej/wiiusejevents/utils/EventsGatherer.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/utils/WiiUseApiListener.java b/src/main/java/wiiusej/wiiusejevents/utils/WiiUseApiListener.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/utils/WiiUseApiListener.java rename to src/main/java/wiiusej/wiiusejevents/utils/WiiUseApiListener.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/utils/WiimoteListener.java b/src/main/java/wiiusej/wiiusejevents/utils/WiimoteListener.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/utils/WiimoteListener.java rename to src/main/java/wiiusej/wiiusejevents/utils/WiimoteListener.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardInsertedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardInsertedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardInsertedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardInsertedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardRemovedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardRemovedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardRemovedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/BalanceBoardRemovedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerInsertedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/ClassicControllerRemovedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/DisconnectionEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroInsertedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/GuitarHeroRemovedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukInsertedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/NunchukRemovedEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/StatusEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiiUseApiEvent.java diff --git a/java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.java b/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.java similarity index 100% rename from java/src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.java rename to src/main/java/wiiusej/wiiusejevents/wiiuseapievents/WiimoteEvent.java