Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (775)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
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 and ubuntu 9.1  (Read 3757 times)
0 Members and 1 Guest are viewing this topic.
Offline bboaz

Junior Newbie

« Posted 2010-01-18 23:50:13 »

I read on the web there might be a problem with jinput and Ubuntu 9.1. Any truth to that?

I just recently installed Ubuntu 9.1 as a virtual OS using VirtualBox and my little test app that uses jinput is getting absolutely nothing from keyboard or mouse - even when I use the AWT plugin.

Just trying to track down where the problem might lie...

Thanks in advance.
Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #1 - Posted 2010-01-19 06:54:35 »

Under XWindows there is using the normal linux plugin. AWT one should work fine. The normal Linux one uses the /dev/input/event* device nodes, which under X on ubuntu 9+ is used by xevdev driver (Any distro that uses these drivers will have similar issues).

I can't explain why AWT plugin isn't working. It uses the normal inputs, so as long as a window from the same JVM as jinput is running in has focus, and the mouse is over it, it should work.



Offline OverKill

Junior Devvie

Java games rock!

« Reply #2 - Posted 2010-01-19 08:50:26 »

 [joda_voice]Ubuntu 9.4 or 9.10 ... there is no 9.1 [/joda_voice]

I have 9.4 and could test it if you want.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bboaz

Junior Newbie

« Reply #3 - Posted 2010-01-25 21:03:22 »

Just for closure on this issue - I figured out why the AWT plugin wasn't working on Ubuntu 9.10. It seems that AWT (and I guess ultimately X?) was unable to gather any mouse/keyboard events for my canvas as long as the canvas's OpenGL context was active - so a minor adjustment to my code and problem solved.

The interesting thing was that I tested this little test app on Windows XP, Windows Vista, Windows 7, Fedora 12, OpenSUSE 11.1, and Ubuntu 9.10 - only Ubuntu 9.10 exhibited this problem.

Anyway, another question: I noticed that the mouse thumb wheel doesn't appear to work for the AWT plugin.  No way to get AWT events for the wheel? Maybe I'm just running an old version - but I think my version is the latest.

Anyway, thanks again for the info.  JInput is a terrific tool.

Pages: [1]
  ignore  |  Print  

hadezbladez (45 views)
2018-11-16 13:46:03

hadezbladez (50 views)
2018-11-16 13:41:33

hadezbladez (29 views)
2018-11-16 13:35:35

hadezbladez (20 views)
2018-11-16 13:32:03

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

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

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

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

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

nelsongames (2043 views)
2018-04-24 18:14:32
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!