Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Re: log4j issues with JInput on: 2009-11-30 16:39:51
Hi

You can try the latest nightly build from here. Looks like the file size changed on the 1st of november build and later.

HTH

Endolf

Thanks Endolf for your response again.  The link you have listed is for the build.  I need to rebuild the source code for glibc 2.7, if I recall.

At what point did the source code change?
2  Java Game APIs & Engines / JInput / Re: log4j issues with JInput on: 2009-11-25 10:07:11
Hi

Which build are you using?. Up until a couple of weeks ago JInput used to dump some information straight to stdout/stderr. I changed this so that it's using java logging.

I have no idea why you are seeing some threads hang, have you considered that when running in debug mode you are still generating OS events that JInput will try and process when it next gets a chance?. Unfortunatly this might be one of those cases when running a debugger effects the operation of the application.

Endolf

Not sure which version it is.  Doesnt seem to be any info in the readme file.  I noticed that there is a version.java file, which has the version variable.  This is set to 2.0.0.-b01.  Is this correct?

I downloaded it a couple of weeks ago.

Maybe I should look at the source code.
3  Java Game APIs & Engines / JInput / Re: How to disable a mouse behaviour within the operating system. on: 2009-11-25 09:48:43
Thanks endolf for you response.  I have managed to sort the problem out.  I configured the xorg.conf file and added the autoDetectEnabled flag to false and explicitly added each mouse.

If anyone needs to do this they can contact me if they like and I will help out.
4  Java Game APIs & Engines / JInput / Re: How to disable a mouse behaviour within the operating system. on: 2009-11-23 18:42:06
I have managed to do some digging around on the net and decided to change the X11 xorg.conf file.  Although unsuccessful at this moment.  The configuration involved setting the 2nd mouse to stop sending events to X, by setting the SendCoreEvents to false.  To distinguish the device I used the command lshal(Hardware Abstraction Level, but I am bit concerned that the device driver it uses is /dev/input/event5!

I am also wondering at this moment if I was successful and stopped the 2nd mouse from sending SendCoreEvents to X if that would cause the jinput to not work!  Can someone please confirm?
5  Java Game APIs & Engines / JInput / log4j issues with JInput on: 2009-11-23 11:56:11
Hi,
  I use log4j in my application and have noted that the application doesnt run correctly i.e. the thread waiting on the event queue doesnt run or seems to hang!

I also notice that when I run my app and when I call the getDefaultEnvironment.getControllers() method that some debug/info is printed.  This looks suspiciously like a log4j format?

Are there any known issues relating to log4j?

Thanks.
6  Java Game APIs & Engines / JInput / How to disable a mouse behaviour within the operating system. on: 2009-11-23 11:46:47
Hi,
  I have a system with x2 mice connected.  When I run my app I want to have one mouse dedicated to controlling certain aspects of the app, including character movements etc.  Whilst the other mouse has the behaviour of a normal mouse.

So I am thinking that I need to disable one of the mice behaviour within the operating system.  Is this correct?  Or can I do this within the jinput API?

Hope someone can help.
7  Java Game APIs & Engines / JInput / Does the DirectInputEnvironmentPlugin detect multiple devices on: 2009-11-12 13:07:54
Hi,
  I am currently writing an app to detect multiple mice and then use a specific one.  The app is intended to run on linux but I have run into a few problems so I am testing on windows! 

I have a machine with 2 mice connected.  When I run the app I only detect one of the mice! 

I am running the followinpublic class ControllerManager {

   public static void main(String[] args) {
      ControllerEnvironment controllerEnvironment = ControllerEnvironment
            .getDefaultEnvironment();
      Controller[] aController = controllerEnvironment.getControllers();
      for (int iController = 0; iController < aController.length; iController++) {
         Controller controller = aController[iController];
         System.out.println(controller.getType());
      }
   }

}
8  Java Game APIs & Engines / JInput / Re: logitech trackman wheel is not recognised!!! on: 2009-11-09 19:11:34
Cheers endolf,
  I would appreciate it.  Grin

I have sent a customer support email to logitech to ask if they could assist.
9  Java Game APIs & Engines / JInput / Re: logitech trackman wheel is not recognised!!! on: 2009-11-09 15:07:42
I am sure it is not present.  I have tested with various combinations - the mouse and keyboard disconnected.  With still no joy  Huh

I have tried a different trackerball(USB) and I cant detect that!  I dont understand  Undecided

Could it be because it is USB?
10  Java Game APIs & Engines / JInput / Re: logitech trackman wheel is not recognised!!! on: 2009-10-27 11:40:15
Hi

If it shows up in windows as a mouse, it *might* show up in JInput as a mouse, probably with some generic name. If not, you will need to install the driver for it to show up as a directx device.

HTH

Endolf

Thanks endolf for the reply.  Just installed the logitech software - I presume this includes the driver?.

When I run my test application it still is not recognising the device!!!!!  Could there be an issue that I already have a USB mouse plugged into my PC and JInput cant differentiate between the mouse and the trackman?

Can someone please help me out - I am stuck?
   Paul
11  Java Game APIs & Engines / JInput / logitech trackman wheel is not recognised!!! on: 2009-10-22 19:34:28
Hi,
  I have a logitech trackman wheel and when I run the following code it doesnt detect it!  Although I do detect my mouse and keyboard.  I havent installed the logitech driver!  Do I need to?  The reason I havent yet is because Windows seems to recognise it when I plug the device in- and it works as a mouse.  Does anyone know why?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
import net.java.games.input.*;

public class JInputController {
   public static void main(final String args[]) {
      final Controller[] ca = ControllerEnvironment.getDefaultEnvironment()
            .getControllers();
      Controller firstMouse = null;

      for (int i = 0; i < ca.length; i++) {
         System.out.println("Found input device: " + ca[i].getName());
      }
   }
}


12  Discussions / General Discussions / Re: Control 2 mice on linux on: 2009-10-22 17:43:35
Thanks for the quick reply princec.

Just looking at JInput and the api. 

Do you know of some examples I can look at?  In particular detecting the two mice?
13  Discussions / General Discussions / Control 2 mice on linux on: 2009-10-22 17:04:16
Hi,
  I am currently developing a java app which is controlled by 2 mice.  1 mouse will have normal mouse behaviour whilst the other mouse needs to a specific widget on the app.  Can someone tell me:

1. Can I use the standard java api?
2. How do I detect the appropriate mouse?

Hope someone can help,
  Paul.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (25 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (19 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!