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.

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?

Similar Messages

  • HttpServer error in reading buffer size via keyboard input - HELP

    I've written a simple HttpServer program that reads keyboard input to construct a buffer to copy the requested file into the socket's output stream. I've done the string-to-integer conversion using BufferedReader and parse.Int. However, when I go to use the int later in the program, I keep getting the message "variable b may not have been initialized." Can anyone tell me what's missing from the code below? Thanks.
    private static void sendBytes(FileInputStream fis, OutputStream os)throws Exception
         //Construct a buffer via console input
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         String str;
         int b;
              System.out.println("Enter desired buffer size or CTRL-C to break.");
         //Convert entry to an integer
         do
              str = br.readLine();
                 try
                   b = Integer.parseInt(str);
              catch(NumberFormatException e)
                   System.out.println("Invalid entry.");
         while((str=br.readLine())!=null);
         //Construct a buffer
         byte[] buffer = new byte;
         int bytes = 0;
         //Begin timing HTML page delivery
         long start, end;
              System.out.println("Timing for Web page delivery");
         start = System.currentTimeMillis();
         //Copy requested file into the socket's output stream
              while((bytes = fis.read(buffer)) != -1)
              os.write(buffer, 0, bytes);

    As the message suggests, what is missing is code to initialize the variable b. The first mention ("int b;") does not initialize it. The second mention ("b = Integer.parseInt(str);") only initializes it if no exception is thrown. So it's possible for b to be uninitialized when you actually try to use it.
    What do you need to change? First you need to decide what's to be done if the keyboard input isn't a valid integer. Do you have a default value in mind? If so, put that where you declare the variable ("int b = 42;"). If not, just initialize the variable to zero ("int b = 0;").

  • Keyboard input not working at boot

    Hello --
    I don't get keyboard input for ~30 seconds at boot, and I'm not sure why. I'm using a hand-rolled kernel with no initrd, though when I use the stock Arch kernel with initrd it does the same thing. According to my kernel logs, the keyboard is recognized before the root filesystem is mounted (and it appears to be PS2, not USB), and from reading the rc scripts, little or nothing happens after the ttys are started.
    udev starts before the root fs is mounted, and when root is fscked at boot, I don't encounter this problem. Therefore I think udev is at fault. Via I can't find any information on telling udev to deal with the keyboard earlier.
    Any ideas on how to fix this? Other than putting "sleep 30" in my rc scripts, that is.

    Sorry, I wasn't being very clear.
    I'm using a laptop, and lsusb doesn't report anything except the buses themselves. Therefore I concluded that my keyboard is not a USB keyboard, as I mentioned above.
    This is booting to a tty console, not to X, so it can't be a KDE issue. And I have full control of my keyboard with GRUB; it's just the kernel that hesitates to acknowledge its existence.

  • Multiple Keyboard inputs...

    I've finished up a version of Pong for extra credit for a Java class i am taking, and i ran into an interesting situation.
    I cannot figure out how to have a two player version of pong have both players control their paddles with the keyboard. The specific problem i run into is, when i enter one paddle to move, and the other attempts to move it stops the first paddle from moving, also there is the whole issue of the key delay that occurs when a key is held down. If anybody can help me out, i would be incredibly greatful.
    It seems like it could possibly being done, for example, in games ive played before a character has been able in mid run(holding arrow key) press another key(such as shift) and jump into the air, while still running, to perform a run-jump.
    I have tryed setting up a keyboard input test so if both keys are pressed both paddles move. This works for one movement, but have you ever tryed hitting two keys at once in word? they both will display once, their will be that short delay, then one of the two keys will continously repeat.
    Any advice? I have it working with one Keyboard input, and the other Mouse input, but the mouse clearly has a big advantage over the keyboard player...
    Thanks,
    Sean Green

    and the repeated key thing still happens as well as the delay....I guess you'll get this as long as you use keyTyped() for player1. Is
    there some reason why you're doing this?
    What I was thinking of was along these lines:boolean up1, up2, down1, down2;
    keyPressedHandler()
        if key is w up1=true
        if key is s down1=true
        if key is up, up2=true
        etc
    keyReleasedHandler()
        if key is w up1=false
        etc
    drawingCodeOrWhereever()
        if(up1 && !down1) player 1 is on the way up
        (else) if(down1 && !up1) player 1 is on the way down
        if(up2 && !down2) player 2 is on the way up
        (else) if(down2 && !up2) player 2 is on the way downYou may want to handle the case of up and down both pressed
    differently.
    If getting rid of keyTyped() doesn't help, post some code. An example
    simple enough to just show the problem woule be good. Say how
    you would make a dot move left-right and up-down indepently.

  • Setting keyboard input to default to phone

    Trying to figure out how to set my keyboard input to default to the phone, NOT to search or any other text-based input. I want to be able to type a phone number into my phone and call someone. Is this too much to ask? I have spent hours trying to figure this out and can't find an answer. Help please! And thanks.

    I don't think so, that I know of.
    Are most of your calls all dialed by number or are there a few numbers you dial quite often?
    You can set a screen shortcut to those.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Troubleshoot keyboard input problem

    the right hand shift key, and full stop, have stopped working. When I attached a different apple keyboard the same thing happened to it. The only way I can get a full stop is with the numeric pad, and the only way to get shift is with the left hand shift key. Does anyone have a solution, please?

    Well, the game is a bit big now, but the problem is definitely in the file GameBoard.java, and my source is:
    http://userpages.umbc.edu/~cbutle3/space.zip
    It is simply a Space Invaders Game. I have gotten almost everything working but keyboard input. I have it set up now so that the game even plays itself, cuz it doesn't listen to my button presses :)
    I really want to add a KeyListener to the JPanel (the GameBoard extends JPanel) so that keyboard input is invisible, but it won't let me - says the GameBoard never has focus and just ignores it. So to get any key input to work at all, I temporarily added a TextField to the panel, and added the KeyListener to the TextField. That's part of the problem. And the main problem is that inside the "gameplay" loop, the KeyListener has no effect. I tried making a new class with a run(), putting the KeyListener in there and calling start() from the GameBoard, but it had the same outcome. Please help! :)
    -chris

  • How do i get keyboard input?

    When I wrote programs in my high-school AP class we always imported a keyboard class and used Keyboard.readInt or .readChar or whatever type. I've downloaded the keyboard class but don't know where to put it so I can import it to my programs and I don't know of any other ways to get keyboard input and the string tokenizer method is a bit confusing. Any help would be much appreciated, thanks a lot.

    Hello Fignut,,
    this is the forum for the JavaHelp product, not for general java programming questions.
    Unfortunately I have no supernatural powers to know how your Keyboard class looks like, so I can offer only a solution with the standard API
        String line;
        try
        { BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
          System.out.println("Enter your text. Finish with <Ctrl>Z and <Ret>.\n");
          while((line = in.readLine()) != null)
          { System.out.println("Echo: "+line);
          in.close();
        catch (Exception e)
        { System.out.println(e);
        }Regards
    J�rg

  • Just started with NetBeans IDE, need to capture all keyboard input!

    Hello,
    I discovered that I can only capture keyboard events when my GUI application has focus. Ok, but I need a functionality that can capture all keyboard input, even if my application runs in the background or in the system tray.
    How can I achieve that?
    Regards,
    Mirza

    I know...sorry, didn't mean to imply otherwise.Don't worry about it; I wasn't offended. (I didn't think that that was what you were tying to do.) I was trying to (subtly) take this a different direction. (Was going to write something Solaris specific or perhaps something in ASM that would effectively do what the O/P wanted. Seeing as how Key Loggers only serve one practical purpose - as far as I know - I just wanted to give him code that he could do nothing with.)

  • Keyboard Input Non-Functional

    When I attempt to play any flash game on any given website I
    get no feedback from the game. Mouse movements and clicks do,
    however, work. I'm running on an iMac G5 with the latest Flash
    Player installed. I've tried uninstalling Flash then reinstalling
    as well as several different browsers (Safari, Firefox, Opera) to
    no avail.
    I've noticed a few topics about this problem around the web
    with no answer... I'm hoping there is one :\
    Thanks in advance!

    I am using a Bluetooth keyboard. I've noticed that the issue
    does resolve itself when using a USB keyboard.
    Ex: launch flash game with BT keyboard, games ignores
    keyboard input. Connect USB keyboard - game responds normally and
    the keys on the BT are still ignored.
    Leaging the game running, switch to textedit and all the keys
    on the BT keyboard are recognized. Back to the game = BT ignored,
    USB works.
    I'd like to blame this all on Adobe but Why would Apple even
    make is possible to distinguish between a BT and USB keyboard at
    the Application level?

  • Subtle Window Manager Blocks All keyboard Input?

    So I'm trying to use subtle on a headless server box of mine over a tightvnc server. Yet for some reason all keyboard input is blocked. If I'm using twm instead, everything works fine.
    ~/.vnc/xstartup
    #!/bin/sh
    export XKL_XMODMAP_DISABLE=1
    xrdb $HOME/.Xresources
    xsetroot -solid grey
    #exec ck-launch-session subtle &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    #twm &
    subtle &
    Again, I can type into xterm when I'm using twm, but not when I'm using subtle. Anyone else know of some sort of work-around that they've used with the same or possibly another WM?
    Thanks!

    Via xinit? That worked, but I don't really want to use the root display for it, just in case I need to do some maintenance on it at the machine . (I do blind command manual maintenance sometimes just because it's easier.
    Is there possibly another way other than using xinit and x11vnc or that does what I want it too?

  • PPC apps (on intel): slow startup, no keyboard input, Excel-Office crashes

    Hello,
    It seems, that all apps that are using rosetta don't work properly.
    - The startup time is extremely long, some minutes, spinning wheel is visible
    - input via keyboard isn't possible
    - Office v. X (Word, Excel, PowerPoint) apps are crashing at startup
    A test with the Calculator.app switched to open with rosetta showed also this symptoms (no keyboard input possible)
    Curiously all this happens *only with my account*. So first I thought it is a problem of the preferences or fonts. But deletion or substitution from backup does not succeed. Also I did the tip sudo "update_prebinding -root / -force" but it didn't help.
    I mad up a fresh account and compared all the files in the ~user/Library path, if there is a file missing in the brocken account. But didn't found some.
    Is there anywhere a file outside the ~user/library path, which has user dependend informations (for rosetta)?
    Many thanks in advance for any idea
    George

    Yeah, I've got it!
    In /Library/Caches I found the following files and trashed them. Now all PowerPC application incl. Office v. X are working again. Huh!
    (My User ID is 504)
    com.apple.ImageCaptureExtension2.ICADeviceDatabase.504
    com.apple.IntlDataCache.sbdl.504
    com.apple.IntlDataCache.504
    com.apple.IntlDataCache.tecx.504
    com.apple.IntlDataCache.kbdx.504
    com.apple.LaunchServices-014504.csstore
    com.apple.IntlDataCache.le.504
    com.apple.colorsync.profiles.504
    com.apple.IntlDataCache.le.kbdx.504
    com.apple.dock.iconcache.504
    com.apple.IntlDataCache.le.sbdl.504
    com.apple.psnormalizer.fontcache.le.504
    com.apple.IntlDataCache.le.taid.504
    com.apple.psnormalizer.fontcache.le.504.lock
    com.apple.IntlDataCache.le.tecx.504
    I didn't look for the single fault in any of this files, but maybe someone has an idea, which file is related to rosetta and likes to post it.
    Best regards and thanks to everybody who thoughts about a solution for my problem
    George

  • OSX/SL 10.6.8 all window apps lose keyboard input; mouse and cmd-N work for spaces

    Input suddenly stops going to all applications, from MacBook Pro and wireless keyboards, and from "Show Keyboard viewer" (OSX 10.6.8 'Snow Leopard', MacBook Pro). Though the OSX Keyboard Viewer shows the keys onscreen as they are pressed on the MacBook and wireless keyboards. 'Spaces' responds to cmd-N commands, but no input is possible to any running or newly-started 3rd party or Apple-provided application. Killing off applications one by one doesn't recover keyboard input ability;  a complete reboot appears necessary to restore the ability to key input into applications. This happens repeatedly, yet never registers as an OS/X 'crash' because 'Force Quit'ting applications and restarting is still possible using only the magic mouse or trackpad.   No data  whether only logging out and back in would correct the apparent input-focus disconnect of all applications with the window manager. There may be some way to restart the window manager by using the mouse to open up new apps and/or cut and paste characters ( including a carriage return ) or cut and paste entire saved typed commands into a terminal window.

    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode - About
    Safe Mode

  • Firefox not responding to keyboard input

    I'm having issues with Firefox temporarily no longer responding to keyboard input.
    I have two machines, both running Windows 7. On my laptop, I never have any issues but on my desktop, I find that Firefox sometimes blocks keyboard input. It will allow me to enter one character in any text field, and no more. Any further input is ignored. This applies to the address bar, the search box and any text fields in the displayed web page, in any tab. All keyboard navigation seems to also be ignored.
    I've tried Reset Firefox and Safe Mode, they don't appear to change anything. I've also tried uninstalling Synergy and changing from my regular English-International keyboard layout to US English, but this still seems to occur. I am also running Workrave which can interrupt keyboard input, but since I can add 1 character, I suspect that Workrave is not the problem.
    Sometimes it can seemingly be unblocked by pressing Start+F9, CTRL+SHIFT+ESC, restarting firefox or opening a new tab, but this seems to only be a temporary solution, the problem soon reoccurs. This bug has been present for some time, I first noticed it in v28 (although it may be even older), I am currently using v31.
    One thing I've noticed is that it never occurs until after my screen has been locked at least once.
    The trouble-shooting information attached will not be entirely accurate because I'm using my laptop to type this - Firefox is not accepting keyboard input right now on my desktop! However, the two environments are similar.
    Thanks, Tadhg

    Some have reported that pressing F9 and the Windows key simultaneously one or more times has worked to fix issues with the keyboard not working.

  • Lag keyboard input

    Hi, I have an issue with my first LabView program can anyone help me please?
    The function of my program is to manualy or automaticaly save the data obtained with the multimeter
    My program worked fine until I wanted to add a file creation function each time the program runs, but the program creates a file every 5 seconds, I have tried using a loop and case but I cant make it work, it still creates a file every 5 seconds.
    Any tips?
    Aditionaly I have tried to program a keyboard input for the buttons in the vi using a few examples I found around the forum but my program just lags and I cant even start measuring.
    I atach my vi for inspection , thanks in advance
    Attachments:
    maybe.vi ‏32 KB

    It probably shouldn't damage anythin constantly updating the loop, although it does introduce overhead and is generally not tidy, to avoid the constant updating I would recommend looking into shift-registers or feedback nodes. On that note, I'll leave you with this snippet, I'm sure you can see how it might apply.
    [Side-note; In case you don't know how to use a snippet, download and save the image, then drag the file from your explorer into a block diagram.]
    Attachments:
    Feedback Node.png ‏19 KB

  • Safari needs two keyboard inputs since update 8.1

    Ipad retina MD510B/A just done a ios8.1 software update and now to use safari I need to do two keyboard presses before I can use also on one of the games real solitaire the keyboard pops up and this is not required on the game. Have tried reset and restart but no change. This problem has only cropped up since putting on the update from ios7 to ios8.

    I have the same problem with my iPhone 6 128GB
    Please help us :(

Maybe you are looking for

  • Brightness, media, and volume keys broken

    I am at my wit's end trying to restore functionality to my special keys on my late 2007 macbook running OS X 10.6.8. Some time two days ago something happened and now suddenly I cannot use the mute key (F10), the volume keys (F11, F12), the brightnes

  • Ovi map on n97

    When I got my n97 my map was working, then i had to deleted someof my memory on my c drive but I dont no what I did because now my map doesnt work and need help getting it back online. When I go into it now it say system error but I have the ovi map

  • Userexit / BADI

    Hi Experts, My requirement is- I have HR ESS in place. Whenever an user places a request for leave, mail goes to SAP Inbox. I need to send a copy to external mail. I got the code somehow. Can anyone suggest Please tell me the userexit/BADI I need to

  • Folders missing of imported photos

    Hello, I have imported a shoot of about 3300 raw images in several folders directories.  One of the folders is missing.  It is on the hard drive and contains images.  I try synchronizing the parent folder and it indicates images need to be imported. 

  • How to change my subscription from "CC single-app Photoshop" to "Photoshop Photography"

    I would like to change the subscription type from Photoshop CC single-app to Photoshop Photography (Including LightRoom 5) Anyone who know how I do that? I entered the Photoshop CC single-app, without knowing of the Photoshop Photography app, that su