| 源码简介: |
This class converts morse code input from a user into a specific number. * Dots are defined by the system as pressing the mouse button and releasing within 250 ms. * Dashes are defined by the system as pressing the mouse button and releasing after 250ms has elapsed. * When a dot or dash has been registered, it is be appended to the Morse code textbox immediately. * Once there are 5 dots and dashes in the textbox, the correct number is processed. * To enter a new number, the canvas should be clicked somewhere. * To end the program, it is necessary to enter "_ . _". -This class converts morse code input from a user into a specific number. * Dots are defined by the system as pressing the mouse button and releasing within 250 ms. * Dashes are defined by the system as pressing the mouse button and releasing after 250ms has elapsed. * When a dot or dash has been registered, it is be appended to the Morse code textbox immediately. * Once there are 5 dots and dashes in the textbox, the correct number is processed. * To enter a new number, the canvas should be clicked somewhere. * To end the program, it is necessary to enter "_ . _".
|