debian/0000755000000000000000000000000011770610730007170 5ustar debian/README.source0000644000000000000000000000156111770610215011350 0ustar Information about jinput ------------------------ REPACKAGING To comply with DFSG, the following files have been removed from upstream tarball: # binary lib/maven-ant-tasks-2.1.0.jar # license not specified plugins/windows/src/native/dx8/dxversion.h plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c plugins/windows/src/native/dx8/net_java_games_input_IDirectInputEffect.c plugins/windows/src/native/winutil.c plugins/windows/src/native/net_java_games_input_DummyWindow.c plugins/windows/src/native/winutil.h plugins/windows/src/native/raw/net_java_games_input_RawInputEnvironmentPlugin.c plugins/windows/src/native/raw/net_java_games_input_RawInputEventQueue.c plugins/windows/src/native/raw/net_java_games_input_RawDevice.c plugins/windows/src/native/raw/rawwinver.h debian/changelog0000644000000000000000000000303311770610676011052 0ustar jinput (20100502+dfsg-7) unstable; urgency=low * Team upload. * Patch a build.xml to include class-path for javahl call, which was needed to fix FTBFS with Java7. -- Niels Thykier Thu, 21 Jun 2012 14:21:16 +0200 jinput (20100502+dfsg-6) unstable; urgency=low * Team upload. * Applied patch from Geoffrey Thomas to remove use of an undefined macro (or C-function). (Closes: #633501) -- Niels Thykier Thu, 26 Jan 2012 16:37:00 +0100 jinput (20100502+dfsg-5) unstable; urgency=low * Add jutils to manifest classpath (Closes: #626002). * Bump Standards-Version to 3.9.2 (no changes). -- Gabriele Giacone <1o5g4r8o@gmail.com> Sat, 25 Jun 2011 14:57:56 +0200 jinput (20100502+dfsg-4) unstable; urgency=low * Standard version to 3.9.0. * Linked javadoc to system javadoc. * d/copyright: Included full text of BSD license. -- Gabriele Giacone <1o5g4r8o@gmail.com> Mon, 05 Jul 2010 19:59:36 +0200 jinput (20100502+dfsg-3) unstable; urgency=low * Team upload. * Add DM-Upload-Allowed: yes. -- Torsten Werner Sat, 29 May 2010 00:05:58 +0200 jinput (20100502+dfsg-2) unstable; urgency=low * default-jdk and libjutils-java are needed by architecture-dependant targets. Moved from B-D-I to B-D. (Closes: #583322) -- Gabriele Giacone <1o5g4r8o@gmail.com> Fri, 28 May 2010 21:26:43 +0200 jinput (20100502+dfsg-1) unstable; urgency=low * Initial release. (Closes: #509689) -- Gabriele Giacone <1o5g4r8o@gmail.com> Sun, 02 May 2010 19:09:21 +0200 debian/compat0000644000000000000000000000000211770610215010364 0ustar 7 debian/control0000644000000000000000000000527711770610215010604 0ustar Source: jinput Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Gabriele Giacone <1o5g4r8o@gmail.com> Build-Depends: debhelper (>= 7.0.50~), javahelper (>= 0.29), ant, ant-optional, default-jdk, libjutils-java Build-Depends-Indep: default-jdk-doc Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/pkg-java/jinput.git Vcs-Browser: http://git.debian.org/?p=pkg-java/jinput.git Homepage: https://jinput.dev.java.net/ DM-Upload-Allowed: yes Package: libjinput-java Architecture: all Depends: ${java:Depends}, ${misc:Depends}, libjinput-jni (>= ${source:Version}), libjutils-java Description: Java Game Controller API jinput is an implementation of an API for game controller discovery and polled input. It is part of a suite of open-source technologies initiated by the Game Technology Group at Sun Microsystems with intention of making the development of high performance games in Java a reality. The API itself is pure Java and presents a platform-neutral completely portable model of controller discovery and polling. It can handle arbitrary controllers and returns both human and machine understandable descriptions of the inputs available. Package: libjinput-jni Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Java Game Controller API (jni) jinput is an implementation of an API for game controller discovery and polled input. It is part of a suite of open-source technologies initiated by the Game Technology Group at Sun Microsystems with intention of making the development of high performance games in Java a reality. The API itself is pure Java and presents a platform-neutral completely portable model of controller discovery and polling. It can handle arbitrary controllers and returns both human and machine understandable descriptions of the inputs available. . This package contains the java jni library. Package: libjinput-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libjinput-java Recommends: default-jdk-doc, libjutils-java-doc Description: Java Game Controller API (javadoc) jinput is an implementation of an API for game controller discovery and polled input. It is part of a suite of open-source technologies initiated by the Game Technology Group at Sun Microsystems with intention of making the development of high performance games in Java a reality. The API itself is pure Java and presents a platform-neutral completely portable model of controller discovery and polling. It can handle arbitrary controllers and returns both human and machine understandable descriptions of the inputs available. . This package contains the API documentation for jinput. debian/copyright0000644000000000000000000001526111770610215011126 0ustar Format-Specification: http://dep.debian.net/deps/dep5/ Name: jinput - Java Game Controller API Maintainer: David Biesack , Jeremy Booth , Jeff Kesselman , Kenneth Russell , Kevin Rushforth , Sven Goethel Source: http://jinput.dev.java.net/source/browse/jinput/ Copyright: 2003-2010, Sun Microsystems, Inc. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE Files: ./plugins/awt/src/net/java/games/input/AWTKeyMap.java, ./plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java, ./plugins/awt/src/net/java/games/input/AWTKeyboard.java, ./plugins/awt/src/net/java/games/input/AWTMouse.java, ./plugins/windows/src/java/net/java/games/input/DirectAndRawInputEnvironmentPlugin.java, ./plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java, ./plugins/linux/src/java/net/java/games/input/LinuxConstantFF.java, ./plugins/linux/src/java/net/java/games/input/LinuxEventDevice.java, ./plugins/linux/src/java/net/java/games/input/LinuxRumbleFF.java, ./plugins/linux/src/java/net/java/games/input/LinuxInputID.java, ./plugins/linux/src/java/net/java/games/input/LinuxNativeTypesMap.java, ./plugins/linux/src/java/net/java/games/input/LinuxAxisDescriptor.java, ./plugins/linux/src/java/net/java/games/input/LinuxAbsInfo.java, ./plugins/linux/src/java/net/java/games/input/LinuxDeviceTask.java, ./plugins/linux/src/java/net/java/games/input/LinuxJoystickDevice.java, ./plugins/linux/src/java/net/java/games/input/LinuxEventComponent.java, ./plugins/linux/src/java/net/java/games/input/LinuxForceFeedbackEffect.java, ./plugins/linux/src/java/net/java/games/input/LinuxDeviceThread.java, ./plugins/linux/src/java/net/java/games/input/LinuxJoystickEvent.java, ./plugins/linux/src/java/net/java/games/input/LinuxEvent.java, ./plugins/linux/src/java/net/java/games/input/LinuxDevice.java, ./plugins/wintab/src/java/net/java/games/input/WinTabContext.java, ./plugins/wintab/src/java/net/java/games/input/WinTabPacket.java, ./plugins/wintab/src/java/net/java/games/input/WinTabComponent.java, ./plugins/wintab/src/java/net/java/games/input/WinTabButtonComponent.java, ./plugins/wintab/src/java/net/java/games/input/WinTabEnvironmentPlugin.java, ./plugins/wintab/src/java/net/java/games/input/WinTabCursorComponent.java, ./plugins/wintab/src/java/net/java/games/input/WinTabDevice.java, ./applet/src/net/java/games/input/applet/test/ControllerEventTestApplet.java, ./applet/src/net/java/games/input/applet/test/ControllerReadTestApplet.java, ./applet/src/net/java/games/input/applet/JInputAppletResourceLoader.java Copyright: 2003-2010, Jeremy Booth License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE Files: debian/* Copyright: 2010, Gabriele Giacone <1o5g4r8o@gmail.com> License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE debian/libjinput-java-doc.javadoc0000644000000000000000000000002011770610215014171 0ustar coreAPI/apidocs debian/libjinput-java.jlibs0000644000000000000000000000002011770610215013122 0ustar dist/jinput.jar debian/patches/0000755000000000000000000000000011770610445010622 5ustar debian/patches/00build.xml0000644000000000000000000000237311770610215012603 0ustar Description: Doesn't include removed jar, fixes clean target, adds classpath to manifest. Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/build.xml +++ b/build.xml @@ -130,7 +130,7 @@ - + @@ -154,8 +154,9 @@ - + + --- a/plugins/awt/build.xml +++ b/plugins/awt/build.xml @@ -44,8 +44,8 @@ - - + + debian/patches/01build.xml.jni0000644000000000000000000000452111770610215013360 0ustar Description: Same binary file name for all archs. Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- jinput-2.0.1~cvs20100404.orig/plugins/linux/build.xml +++ jinput-2.0.1~cvs20100404/plugins/linux/build.xml @@ -65,7 +65,7 @@ - + --- jinput-2.0.1~cvs20100404.orig/plugins/linux/src/native/build.xml +++ jinput-2.0.1~cvs20100404/plugins/linux/src/native/build.xml @@ -8,6 +8,7 @@ + @@ -28,9 +29,9 @@ - + --- jinput-2.0.1~cvs20100404.orig/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java +++ jinput-2.0.1~cvs20100404/plugins/linux/src/java/net/java/games/input/LinuxEnvironmentPlugin.java @@ -39,8 +39,8 @@ import java.security.PrivilegedAction; * @author Jeremy Booth (jeremy@newdawnsoftware.com) */ public final class LinuxEnvironmentPlugin extends ControllerEnvironment implements Plugin { - private final static String LIBNAME = "jinput-linux"; - private final static String POSTFIX64BIT = "64"; + private final static String LIBNAME = "jinput"; + private final static String POSTFIX64BIT = ""; private static boolean supported = false; private final Controller[] controllers; debian/patches/02build.xml.nonfree0000644000000000000000000000245111770610215014235 0ustar Description: To exclude removed nonfree source code from build process. Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- jinput-20100502+dfsg.orig/build.xml +++ jinput-20100502+dfsg/build.xml @@ -69,7 +69,7 @@ - + @@ -124,9 +124,9 @@ - + @@ -139,7 +139,7 @@ - + debian/patches/03javadoc0000644000000000000000000000203511770610215012312 0ustar Description: Links javadoc to system javadoc. Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/coreAPI/build.xml +++ b/coreAPI/build.xml @@ -2,7 +2,7 @@ - + @@ -44,8 +44,11 @@ destdir="apidocs" additionalparam="-source 1.4" excludepackagenames="net.java.games.input.example.*,net.java.games.input.test.*"> + + + debian/patches/04jinput-remove-getDeviceUsageBits.patch0000644000000000000000000000623111770610215020314 0ustar Index: trunk/plugins/linux/src/java/net/java/games/input/LinuxEventDevice.java =================================================================== --- trunk/plugins/linux/src/java/net/java/games/input/LinuxEventDevice.java (revision 247) +++ trunk/plugins/linux/src/java/net/java/games/input/LinuxEventDevice.java (working copy) @@ -94,28 +94,6 @@ } private final Controller.Type guessType() throws IOException { - Controller.Type type_from_usages = guessTypeFromUsages(); - if (type_from_usages == Controller.Type.UNKNOWN) - return guessTypeFromComponents(); - else - return type_from_usages; - } - - private final Controller.Type guessTypeFromUsages() throws IOException { - byte[] usage_bits = getDeviceUsageBits(); - if (isBitSet(usage_bits, NativeDefinitions.USAGE_MOUSE)) - return Controller.Type.MOUSE; - else if (isBitSet(usage_bits, NativeDefinitions.USAGE_KEYBOARD)) - return Controller.Type.KEYBOARD; - else if (isBitSet(usage_bits, NativeDefinitions.USAGE_GAMEPAD)) - return Controller.Type.GAMEPAD; - else if (isBitSet(usage_bits, NativeDefinitions.USAGE_JOYSTICK)) - return Controller.Type.STICK; - else - return Controller.Type.UNKNOWN; - } - - private final Controller.Type guessTypeFromComponents() throws IOException { List components = getComponents(); if (components.size() == 0) return Controller.Type.UNKNOWN; @@ -342,15 +320,6 @@ } private final static native void nGetBits(long fd, int ev_type, byte[] evtype_bits) throws IOException; - private final byte[] getDeviceUsageBits() throws IOException { - byte[] bits = new byte[NativeDefinitions.USAGE_MAX/8 + 1]; - if (getVersion() >= 0x010001) { - nGetDeviceUsageBits(fd, bits); - } - return bits; - } - private final static native void nGetDeviceUsageBits(long fd, byte[] type_bits) throws IOException; - public final synchronized void pollKeyStates() throws IOException { nGetKeyStates(fd, key_states); } Index: trunk/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c =================================================================== --- trunk/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c (revision 247) +++ trunk/plugins/linux/src/native/net_java_games_input_LinuxEventDevice.c (working copy) @@ -112,20 +112,6 @@ return num_effects; } -JNIEXPORT void JNICALL Java_net_java_games_input_LinuxEventDevice_nGetDeviceUsageBits(JNIEnv *env, jclass unused, jlong fd_address, jbyteArray usages_array) { -#if EV_VERSION >= 0x010001 - int fd = (int)fd_address; - jsize len = (*env)->GetArrayLength(env, usages_array); - jbyte *usages = (*env)->GetByteArrayElements(env, usages_array, NULL); - if (usages == NULL) - return; - int res = ioctl(fd, EVIOCGUSAGE(len), usages); - (*env)->ReleaseByteArrayElements(env, usages_array, usages, 0); - if (res == -1) - throwIOException(env, "Failed to get device usages (%d)\n", errno); -#endif -} - JNIEXPORT void JNICALL Java_net_java_games_input_LinuxEventDevice_nGetBits(JNIEnv *env, jclass unused, jlong fd_address, jint evtype, jbyteArray bits_array) { int fd = (int)fd_address; jsize len = (*env)->GetArrayLength(env, bits_array); debian/patches/series0000644000000000000000000000017011770610266012036 0ustar 00build.xml 01build.xml.jni 02build.xml.nonfree 03javadoc 04jinput-remove-getDeviceUsageBits.patch 05java7-compat.patch debian/patches/05java7-compat.patch0000644000000000000000000000103011770610440014266 0ustar Description: Fix FTBFS with Java7 diff --git a/plugins/linux/build.xml b/plugins/linux/build.xml index ad912f4..2848db3 100644 --- a/plugins/linux/build.xml +++ b/plugins/linux/build.xml @@ -56,6 +56,7 @@ + debian/remove.nonfree0000644000000000000000000000134411770610215012043 0ustar #!/bin/sh rm -fv plugins/windows/src/native/dx8/dxversion.h rm -fv plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c rm -fv plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c rm -fv plugins/windows/src/native/dx8/net_java_games_input_IDirectInputEffect.c rm -fv plugins/windows/src/native/winutil.c rm -fv plugins/windows/src/native/net_java_games_input_DummyWindow.c rm -fv plugins/windows/src/native/winutil.h rm -fv plugins/windows/src/native/raw/net_java_games_input_RawInputEnvironmentPlugin.c rm -fv plugins/windows/src/native/raw/net_java_games_input_RawInputEventQueue.c rm -fv plugins/windows/src/native/raw/net_java_games_input_RawDevice.c rm -fv plugins/windows/src/native/raw/rawwinver.h debian/rules0000755000000000000000000000252611770610215010253 0ustar #!/usr/bin/make -f NAME := jinput VERSION := $(shell dpkg-parsechangelog| sed -n '/^Version/{s/Version: \(.*\)-[0-9]*$$/\1/;s/+dfsg//p}') CVSDATE := $(shell echo $(VERSION)|sed -n 's/\(....\)\(..\)\(..\)/\1-\2-\3/p') TMPDIR := $(NAME)-$(VERSION) TAR := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz CLASSPATH := /usr/share/java/jutils.jar:$(CURDIR)/dist/jinput-linux.jar export JAVA_HOME=/usr/lib/jvm/default-java export CLASSPATH %: dh --with javahelper $@ override_dh_auto_build: mkdir lib && cp /usr/share/java/jutils.jar lib ant simple_linux ant -f coreAPI/build.xml javadoc override_dh_auto_install: mv dist/jinput-linux.jar dist/jinput.jar install -d -m 755 debian/libjinput-jni/usr/lib/jni install -m 644 dist/libjinput.so \ debian/libjinput-jni/usr/lib/jni/libjinput.so override_dh_auto_clean: rm -rf lib coreAPI/build.number find plugins -name 'net_java_games_input_*.h' -delete -mkdir plugins/windows/src/native/raw plugins/windows/src/native/dx8 ant clean get-orig-source: -rm $(TAR) cvs -d :pserver:guest@cvs.dev.java.net:/cvs export -D $(CVSDATE) -d $(TMPDIR) $(NAME) echo "The following files will not be included in Debian tarball:" cd $(TMPDIR) && find . \( -name '*.class' -o -name '*.jar' \) -print -delete cd $(TMPDIR) && sh ../debian/remove.nonfree ZIP=--best tar --exclude-vcs -zcf $(TAR) $(TMPDIR) rm -rf $(TMPDIR) debian/source/0000755000000000000000000000000011770610215010466 5ustar debian/source/format0000644000000000000000000000001411770610215011674 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000016211770610215010216 0ustar version=3 opts="dversionmangle=s/\+dfsg//" \ http://www.newdawnsoftware.com/resources/jinput/jinput_dist_(.*).zip