title: Using Keyboards in JInput without root privileges
body: <p>I'm writing a program that needs to poll keyboard keys at specific times, and rather than going through the effort of writing my own event-driven keyboard polling class, I thought I'd use JInput's built-in Keyboard class.  </p>
  
  <p>It works perfectly when I run my program as root (I'm running on Ubuntu 10.10) but it doesn't even detect the fact that the keyboard exists when run as a normal user. I get the following error output:</p>
  
  <pre><code>Nov 29, 2010 2:08:50 PM net.java.games.input.DefaultControllerEnvironment getControllers
  INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event11): Failed to open device /dev/input/event11 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event10): Failed to open device /dev/input/event10 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event9): Failed to open device /dev/input/event9 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event8): Failed to open device /dev/input/event8 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)
  
  
  Nov 29, 2010 2:08:50 PM net.java.games.input.ControllerEnvironment log
  INFO: Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)
  </code></pre>
  
  <p>Does anyone have any experience using keyboards in JInput or any ideas for how to work around this so I don't have to run as root? Thanks!</p>