- Version [version]
- Download 855
- File Size 5.78 KB
- File Count 1
- Create Date November 30, 2014
- Last Updated November 30, 2014
com.jimisaacs.keyboard.KeyboardControl
KeyboardControl is an alternative to regular key listeners. This class treats keyboard events differently than the regular builtin KeyboardEvent events. It treats them more appropraitly for game design and alike. The differences are in how the events are dispatched. For instance they are not dispatched on the increment normally dispatched by your keyboard itself to flash. They are instead dispatched at either your framerate, or a specified time increment in milliseconds. The dispatching starts as soon as a key is pressed, with no usual keyboard first key hit delay. The KEY_UP and KEY_DOWN events do not dispatch except when these events actually happen. Meaning the KEY_DOWN is dispatched once when any key is pressed The KEY_UP is dispatched once when the last of all of the keys are released.
Leave a Reply