You are not logged in.

#1 2015-11-14 23:11:27

charmonium
Member
Registered: 2015-06-23
Posts: 1
Website

Processing library cannot access the keybroad

The "Game Controller Plus" library for Processing cannot access the keyboard.

The following program doesn't work.

import org.gamecontrolplus.*;
public void setup() {
  ControlIO c = ControlIO.getInstance(this);
  c.getDevice("Keyboard");
}

It outputs the following:

Failed to open device (/dev/input/event1): Failed to open device /dev/input/event13 (13)
<SNIP>
Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)
Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)
Linux plugin claims to have found 0 controllers

I noticed that /dev/input/event0 was owned by the "input" group, so I added my user to the "input" group, still the same result.

I tried running processing as root, and the output was

Linux plugin claims to have found 8 controllers, 

Any ideas on how to get this to work with my normal user?

Offline

#2 2015-11-14 23:13:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: Processing library cannot access the keybroad

Moving to programming and scripting.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB