Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Key presses in game not working.

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Key presses in game not working.

    I finished a game. It works perfectly fine on my computer.

    Sent it to a friend. On his computer, for some reason, one of the keys that are used to play doesn't work inside the game. (It works in any other context, like a web browser).

    He tried pushing this key with no other keys held. Still didn't work. So it's not a 'key combination' issue.

    We both use Windows and the most updated JRE version.

    The key that doesn't work on his computer, is: ; (semicolon)

    What could it be? This is really weird. Thanks


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Key presses in game not working.

    Agreed, and it's difficult (if not impossible) to suggest a solution to a problem that exists only in a specific scenario that we can't duplicate. Is there something unique about your friend's hardware? A special keyboard of that uses a special driver? What is the one key that is not working? (it's odd you didn't mention that.)

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Key presses in game not working.

    The key is the semicolon: ;

    I can't change the keys know, because it took me time just to find key combinations that most of the time aren't problematic (this game involves two players holding keys on the keyboard for long periods of time, so a lot of key combinations didn't work.)

    Any ideas?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Key presses in game not working.

    I was curious about the key, wondering if it could be hardware dependent. The semi-colon should be consistent across all hardware and OS configurations.

    You've mentioned that keys are pressed in combination and held for long periods of time. The behavior of key combinations, key repeats when held down, and key repeat rates can vary widely from system to system and can usually be modified by the user. You might investigate this area and see if the settings for these things on your friend's machine are significantly different than on yours.

Similar Threads

  1. Program not recognising key presses
    By Squishy in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 19th, 2012, 02:51 PM
  2. Key Handler not working
    By wuppy29 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 3rd, 2012, 01:07 PM
  3. Listening to 2 Key Presses
    By aussiemcgr in forum Java Theory & Questions
    Replies: 3
    Last Post: January 18th, 2011, 06:09 PM
  4. video game problem - delay in response to arrow key presses
    By gib65 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: October 17th, 2010, 07:39 PM
  5. Key Listener not working in jinternalframe
    By furqankhan in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 12th, 2010, 09:48 AM

Tags for this Thread