??? 06/04/04 14:52 Read: times |
#71764 - RE: multiple key press Responding to: ???'s previous message |
the problem with detection of multiple keypresses is that it will typically show up as
key a or b key a and b key a or b This is easy to handle, if you do not mind making the customer angry, by processing keys as they are released. The reaction is "I pressed this key for 5 seconds and nothing happened". To act upon it, as should be, when keys are pressed you have two options a) wait ~100ms after first key to see if secon key also. This will fail when users are not nimble. b) make all key action retractable: say key a is presed and you act upon it, now while key a is still pressed, key be is pressed as well. Then you must undo what you did for key a and do what is needed for the combined press of the two. In other words: detection of multiple keys is easy, handling it is not. Erik |
Topic | Author | Date |
multiple key press | 01/01/70 00:00 | |
RE: multiple key press | 01/01/70 00:00 | |
RE: multiple key press | 01/01/70 00:00 | |
What do you mean? | 01/01/70 00:00 | |
RE: multiple key press | 01/01/70 00:00 | |
RE: multiple key press | 01/01/70 00:00 | |
RE: multiple key press | 01/01/70 00:00 | |
RE: multiple key press![]() | 01/01/70 00:00 |