| Type | Wish | Status | submitted | Date | 8-Nov-2011 15:33 |
|---|---|---|---|---|---|
| Version | alpha 112 | Category | Graphics | Submitted by | cyphre2 |
| Platform | All | Severity | major | Priority | high |
| Summary | Add KEY-DOWN event type to the event! datatype |
|---|---|
| Description |
We need to add one more event type: 'key-down as we currently have only 'key and 'key-up event types.
The difference should be: KEY-UP/KEY-DOWN - are 'low level' events that should be used for handling misc. controls, shortcuts etc. while the KEY event type should be used only for character typing as it is the only event that detects properly Unicode characters as they can be produced by series of key presses. note: I have the internal functionality prepared for Win Host-Kit, just need to enhance the EVENT! datatype for 'key-down keyword |
| Example code |
switch event/type [
key-down [
;handle low level key down controls (useful for shortcuts, games etc.)
]
key [
;handle typed Unicode characters (useful for text editing)
]
key-up [
;handle low level key up controls (useful for games, advanced keyboard controls etc.)
]
]
|
| Assigned to | n/a | Fixed in | - | Last Update | 8-Nov-2011 15:33 |
|---|
| Date | User | Field | Action | Change |
|---|---|---|---|---|
| 8-Nov-2011 15:33 | cyphre2 | Ticket | Added | - |