Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
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 15:39:51

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



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 09:07:11

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.


Not sure which version it is.  Doesnt seem to be any info in the readme file.  I noticed that there is a 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 08: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 17: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 10:56:11
  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?

6  Java Game APIs & Engines / JInput / How to disable a mouse behaviour within the operating system. on: 2009-11-23 10:46:47
  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 12:07:54
  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
      Controller[] aController = controllerEnvironment.getControllers();
      for (int iController = 0; iController < aController.length; iController++) {
         Controller controller = aController[iController];

8  Java Game APIs & Engines / JInput / Re: logitech trackman wheel is not recognised!!! on: 2009-11-09 18: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 14: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 10:40:15

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.



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?
11  Java Game APIs & Engines / JInput / logitech trackman wheel is not recognised!!! on: 2009-10-22 17:34:28
  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?


public class JInputController {
   public static void main(final String args[]) {
      final Controller[] ca = ControllerEnvironment.getDefaultEnvironment()
      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 15: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 15:04:16
  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,
Pages: [1]
Ecumene (61 views)
2017-09-30 02:57:34

theagentd (82 views)
2017-09-26 18:23:31

cybrmynd (189 views)
2017-08-02 12:28:51

cybrmynd (189 views)
2017-08-02 12:19:43

cybrmynd (194 views)
2017-08-02 12:18:09

Sralse (206 views)
2017-07-25 17:13:48

Archive (770 views)
2017-04-27 17:45:51

buddyBro (904 views)
2017-04-05 03:38:00

CopyableCougar4 (1454 views)
2017-03-24 15:39:42

theagentd (1331 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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‑
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!