Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (468)
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 needs /dev/input/event* - How do I get them  (Read 2107 times)
0 Members and 1 Guest are viewing this topic.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Posted 2005-08-17 18:09:48 »

hi

For JInput needs /dev/input/event* device nodes, I need them to use JInput. I'm running Mandriva 2005 LE with standard kernel. In /dev/input/ there are just two files "mice" and "mouse0", if I remember correctly. Maybe I have turned off a responsable daemon. I don't know. Can anybody tell me how to get these f***ing nodes?

Or maybe I don't need them to use JInput; even better.

Please help me

Qudus
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2005-08-17 19:39:26 »

Hi

Those are the nodes needed to used the devices, It looks to me like your distribution doesn't have the event interface modules built in.

My kernel config has this in it.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_MOUSEDEV_PSAUX_ENABLE=y
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_TSDEV=m
CONFIG_INPUT_TSDEV_SCREEN_X=240
CONFIG_INPUT_TSDEV_SCREEN_Y=320
CONFIG_INPUT_EVDEV=m
CONFIG_INPUT_EVBUG=m


Those nodes will also only appear when you have a device plugged in, but with the right modules, even just a mouse/keyboard will count and create /dev/input/event* nodes

Unfortunatly your distribution doesn't seem to have much info online that people who don't have it can get at. You'll have to register your product and ask on there unless you are familiar with kernel building.

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2005-08-17 20:41:53 »

On my platform (SUSE9.3)  I currently get a list of event nodes that dont exist that all seme to be related to rumble code.

However it runs fine and hears my KB and mouse Smiley


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #3 - Posted 2005-08-17 22:45:52 »

Hi

Don't know about suse, but redhat always used to create hundreds of dev nodes for every device under the sun, I think it created something like 5 js nodes even if non were plugged in, gawd knows how many hdd nodes it created Smiley

Endolf

Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #4 - Posted 2005-08-18 12:37:30 »

Ok, got that fixed. I just plugged my mouse to the usb port. Before it it was plugged to the ps2 port. After I did that there were three event nodes and after I changed the rights jinput found my mouse and my keyboard. Why did it find the keyboard after that and not before?

Anyway, the problem is fixed for me.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2005-08-18 13:11:18 »

Hi

Not sure whats going on there, it still sounds like a kernel config/compile issue. The good news is it's working though 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.

theagentd (6 views)
2014-04-24 23:00:44

xsi3rr4x (83 views)
2014-04-15 18:08:23

BurntPizza (75 views)
2014-04-15 03:46:01

UprightPath (86 views)
2014-04-14 17:39:50

UprightPath (69 views)
2014-04-14 17:35:47

Porlus (86 views)
2014-04-14 15:48:38

tom_mai78101 (109 views)
2014-04-10 04:04:31

BurntPizza (169 views)
2014-04-08 23:06:04

tom_mai78101 (265 views)
2014-04-05 13:34:39

trollwarrior1 (216 views)
2014-04-04 12:06:45
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!