Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (855)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  jinput not working on some computers  (Read 3414 times)
0 Members and 1 Guest are viewing this topic.
Offline MarkGehring

Junior Newbie

« Posted 2008-07-18 17:00:58 »


We've had a great experience using jinput.

But, on about 10% of our user's computers, it doesn't seem to work.  (We're calling the keyboard poll() method to see if keys are pressed.)

For example, one user has the following setup:
  HP Pavilion   DB6600 notebook  Windows XP, and uses DirectAndRawInputEnvironmentPlugin

We've had other users running Vista where it doesn't seem to work.

It's unclear to me how to debug this.   We can run from the jinput source, but it's still unclear to me how best to proceed.

Anyone have suggestions?


Offline MarkGehring

Junior Newbie

« Reply #1 - Posted 2008-08-14 02:23:46 »

Well I wasn't exactly overwhelmed there with responses...

But we figured it out.   The "getting started" post shows an example with the mouse controller, where only the first mouse controller is polled.   We had done the same thing with the keyboard controller, and this works on most computers.   But on some systems the first keyboard controller is not the correct controller, and no events come through.

Now we're checking all controllers, and things are working fine.   We may make a change to detect which controller is active, and stop polling the other keyboard controllers.
Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #2 - Posted 2008-08-14 17:41:07 »

I looked around in the code, but couldn't see any mistakes, looks like it wasn't a bug. More importantly, it's working for you now.


Pages: [1]
  ignore  |  Print  

EgonOlsen (1578 views)
2018-06-10 19:43:48

EgonOlsen (1663 views)
2018-06-10 19:43:44

EgonOlsen (1150 views)
2018-06-10 19:43:20

DesertCoockie (1578 views)
2018-05-13 18:23:11

nelsongames (1178 views)
2018-04-24 18:15:36

nelsongames (1669 views)
2018-04-24 18:14:32

ivj94 (2427 views)
2018-03-24 14:47:39

ivj94 (1635 views)
2018-03-24 14:46:31

ivj94 (2727 views)
2018-03-24 14:43:53

Solater (889 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!