You are not logged in.

#1 2014-02-10 03:52:31

fiendfan1
Member
Registered: 2013-07-18
Posts: 47

Games don't recieve keyboard input

I have tried a few games so far, minecraft (Java + LWJGL) terasology (Java + LWJGL) and assault cube (SDL and C++?) and every time, the applications refuse to accept most keyboard input. The only keys that work are the arrow keys and the numpad keys.

It is odd because in assault cube, when I try to set a keybinding, it says something like "key binding failed". So it detects the input but chooses to reject it?

I have xf86-input-evdev installed.

Input works perfectly on every other application.

Offline

#2 2014-02-10 16:43:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: Games don't recieve keyboard input

Are there any messages in the journal about unknown keys being pressed?
Can you check which kernel you are using? (Post the output of uname -a )


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2014-02-10 21:02:46

fiendfan1
Member
Registered: 2013-07-18
Posts: 47

Re: Games don't recieve keyboard input

ewaller wrote:

Are there any messages in the journal about unknown keys being pressed?
Can you check which kernel you are using? (Post the output of uname -a )

Offline

#4 2014-02-10 21:04:20

fiendfan1
Member
Registered: 2013-07-18
Posts: 47

Re: Games don't recieve keyboard input

ewaller wrote:

Are there any messages in the journal about unknown keys being pressed?
Can you check which kernel you are using? (Post the output of uname -a )


There are no messages in the journal, no info about key input in the extensive command line output of terasology.
uname -a: Linux arch 3.13.2-1-ARCH #1 SMP PREEMPT Thu Feb 6 23:54:46 CET 2014 x86_64 GNU/Linux

Offline

#5 2014-03-01 17:00:28

pensnarik
Member
Registered: 2014-02-16
Posts: 13

Re: Games don't recieve keyboard input

Have the same issue. Tried to downgrade LWJGL, but iminecraft dir contains sha keys for every jar and is seems not very easy.

Offline

#6 2014-03-04 02:28:20

fiendfan1
Member
Registered: 2013-07-18
Posts: 47

Re: Games don't recieve keyboard input

pensnarik wrote:

Have the same issue. Tried to downgrade LWJGL, but iminecraft dir contains sha keys for every jar and is seems not very easy.

I ended up fixing it by adding the line

setxkbmap -model pc104 -layout us

to my ~/.xinitrc.

Offline

#7 2014-03-09 14:02:41

raggerv8
Member
From: Sweden
Registered: 2010-07-01
Posts: 117
Website

Re: Games don't recieve keyboard input

Hi,

so, I use a swedish keyboard layout, I have this in my ~/.xinitrc

setxkbmap se -option caps:none &

In minecraft, some "special keys" does not register. As far as LWJGL is concerned, they are NONE, or KEY_0. If I change to us layout with

setxkbmap us

I can bind those special keys just fine, like GRAVE for example. With SE (or DK, or NO...) they register as KEY_0. How can I solve this?


Brottweiler at #archlinux

Use IRC and Mumble for online communication!

Offline

Board footer

Powered by FluxBB