keyboard problem for applets

Hello,
I am trying to run my applets on a laptop computer. It has Windows ME, and 128 MB of ram. It seems that the keyboard input has a delay to it. After a button is released the game cursor continues to move for several seconds. It happends for all keyboard input. Does anyone know what I could try to stop this from happening. The applets run fine on other computers.

-Thanks
-Daniel Keller

Comments

  • : Hello,
    : I am trying to run my applets on a laptop computer. It has
    : Windows ME, and 128 MB of ram. It seems that the keyboard input has
    : a delay to it. After a button is released the game cursor continues
    : to move for several seconds. It happends for all keyboard input.
    : Does anyone know what I could try to stop this from happening. The
    : applets run fine on other computers.
    :
    : -Thanks
    : -Daniel Keller

    My guess is that your laptop isn't fast enough to run that applet. The solution can either be to try to optimalize the applet or to invest in a faster laptop.
  • : : Hello,
    : : I am trying to run my applets on a laptop computer. It has
    : : Windows ME, and 128 MB of ram. It seems that the keyboard input has
    : : a delay to it. After a button is released the game cursor continues
    : : to move for several seconds. It happends for all keyboard input.
    : : Does anyone know what I could try to stop this from happening. The
    : : applets run fine on other computers.
    : :
    : : -Thanks
    : : -Daniel Keller
    :
    : My guess is that your laptop isn't fast enough to run that applet.
    : The solution can either be to try to optimalize the applet or to
    : invest in a faster laptop.

    Hello,
    I don't think the problem is that the laptop is to slow. The applet seems to run at normal speed, only that the keyboard input is delayed.
  • It can't be a problem with the computer speed, because the applet runs at a normal speed, the graphics display fine it only has a keyboard problem. The keys seem to "stick" when you let go of a key it keeps moving for several seconds. It seems like it stores all the keyboard touches in memory and plays them back in slow speed. I can also mention that I'm plugging in an external keybaord to the laptop, the keyboard does not work. Does anyone have a suggestion to this problem??

  • : It can't be a problem with the computer speed, because the applet
    : runs at a normal speed, the graphics display fine it only has a
    : keyboard problem. The keys seem to "stick" when you let go of a
    : key it keeps moving for several seconds. It seems like it stores
    : all the keyboard touches in memory and plays them back in slow
    : speed. I can also mention that I'm plugging in an external keybaord
    : to the laptop, the keyboard does not work. Does anyone have a
    : suggestion to this problem??
    :
    :
    Are the other computers running ME also, or 2k/XP? If they are running 2k/XP, then the problem is the DOS keyboard buffer. In ME keypresses are stored in a buffer and are released after some time. This might cause that the buffer still has keypresses stored after you release the key.
  • : Are the other computers running ME also, or 2k/XP? If they are
    : running 2k/XP, then the problem is the DOS keyboard buffer. In ME
    : keypresses are stored in a buffer and are released after some time.
    : This might cause that the buffer still has keypresses stored after
    : you release the key.

    Ok, so this is the problem. What can I do to fix it? Is there a java method to clear the buffer?



  • : : Are the other computers running ME also, or 2k/XP? If they are
    : : running 2k/XP, then the problem is the DOS keyboard buffer. In ME
    : : keypresses are stored in a buffer and are released after some time.
    : : This might cause that the buffer still has keypresses stored after
    : : you release the key.
    :
    : Ok, so this is the problem. What can I do to fix it? Is there a
    : java method to clear the buffer?
    :
    The buffer is maintained by the OS, and I'm not sure that there is an API function to clear it.
    In non-Java programs, most programmers circumvented the buffer by looking directly to the keyboard port. I'm not sure if that can be done by Java alone. It might be possible to perform it by loading a native library into the JVM and routing the keyboard input through that library.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories