Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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 2435 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


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.

HTH

Endolf

Offline OverKill

Junior Member




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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!