Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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; polling mouse events does not work properly  (Read 3887 times)
0 Members and 1 Guest are viewing this topic.
Offline bienator

Senior Member




OutOfCoffeeException


« Posted 2008-11-23 23:52:25 »

Hi,

I can successfully poll mousebuttons and keyboard but the x,y  and mousewheel value stays at 0. Are there known issues on Ubuntu 8.10? It worked for me on 7.10 (and on windows of course).

/dev/input/* is readable for everyone.

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2008-11-25 18:17:07 »

Hi

I've just updated my laptop to 8.10 and see the same thing, it's a new bug, I'll do some digging.

Cheers

Endolf

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2008-11-25 22:56:03 »

I've had a look this evening at this. Seems that event trying to cat the /dev/input/event* devices doesn't work, so JInput has no change. Going to a real terminal rather than a virtual one in X seems to kick everything in to life, so I'm guessing it's an X issue. I've done a bit of hunting but I've not found an answer yet. It's definitely the OS rather than JInput though.

Endolf

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bienator

Senior Member




OutOfCoffeeException


« Reply #3 - Posted 2008-11-26 18:13:36 »

thank you for looking into it endolf,

maybe you could file a bug report against ubuntu? I don't think I have enough background knowledge to provide useful information Wink

Offline paulalexandrow

Innocent Bystander





« Reply #4 - Posted 2008-12-05 02:55:19 »

Hi,

having encountered the same problem, i did some research myself and might be able to shed some more light on this topic: the problem seems to be related to the introduction of input-hotplug for X11 in Intrepid (see [1]). Further, roaming through a couple of Ubuntu forums, I found that there were people facing more severe side effects than just /dev/input/* having no output, such as no working keyboard at all, etc.  There are some suggested workarounds for their problems too, one of which worked for me: put

1  
Option   "AutoAddDevices" "false"


into the "ServerFlags" section of your xorg.conf and restart the X server. Voila: cat /dev/input/* reflects mouse movements again and JInput correctly reads those values as well.

Honestly, being a total nitwit in terms of X11, I don't even know what this setting really effects. It's just something I found out and wanted to share with anybody who might be able to address the problem properly and could benefit from this information (and anybody who, just like me, can continue developing for the time being).

Needless to say, that this can only be a short-term, dev-only workaround for me, as it can't be expected of any normal user or customer to change some system-config (leaving aside any necessary chmods on /dev/input/*). Therefore I would very much appretiate any solution that works with standard-Intrepid and standard-JInput - whatever needs to be changed for that. Yeah, needless to say...

[1] http://www.ubuntu.com/getubuntu/releasenotes/810#X.Org%20Input%20Devices

PS: Having just started with JInput today and being new to JGO as well let me please say hello and thank you for the wonderful Jinput API!
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2008-12-05 07:10:07 »

Yup, thats the same thread I saw. I'm not sure what the side effects are though. I think the new X doesn't have a comprehensive config file by default, it guesses most stuff each time. IIRC the mouse and keyboard is now supported using Xs evdev driver, and I don't know what effect the flag has on those. Any volunteers to shaft their X config?? Smiley

Endolf

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.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (44 views)
2014-09-23 14:38:19

radar3301 (25 views)
2014-09-21 23:33:17

BurntPizza (62 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (39 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
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!