Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (762)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (847)
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 3355 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 (364 views)
2018-06-10 19:43:48

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

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

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

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

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

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

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

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

Solater (445 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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 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!