Type | Bug | Status | built | Date | 12-Jan-2010 02:22 |
---|---|---|---|---|---|
Version | alpha 95 | Category | Native | Submitted by | Ashley |
Platform | Windows | Severity | major | Priority | normal |
Summary | map-event returns incorrect gob! with many keystrokes |
---|---|
Description |
Run the example code and mouse over the black and white regions of the window. Note how map-event returns the correct gob. Now try the same thing again but press various keys on the keyboard. On my system all characters apart from lowercase 'd' to 'z' returns the child gob ('d' to 'z' returns the parent gob). Also note that uppercase 'D' to 'Z' returns the child gob. I'm using Windows XP on a Mac via VirtualBox with a Mac keyboard ... but the keycodes returned in the event appear correct, so I don't think the problem is related to virtualization. |
Example code |
system/view/event-port: open [scheme: 'event] system/view/event-port/awake: funct [event][e: map-event event print e/gob/color] gob: make gob! [color: black offset: 50x50 size: 200x200] append gob make gob! [color: white size: 100x100] append system/view/screen-gob gob show system/view/screen-gob wait system/view/event-port |
Assigned to | n/a | Fixed in | alpha 97 | Last Update | 12-Jan-2010 23:33 |
---|
Comments | |
---|---|
(0001897)
Carl 12-Jan-2010 23:33 |
The bug in MAP-EVENT was invalid use of the data field of the raw event, so the bug has been fixed.
However, it should also be noted for the docs that some types of events have no xy mapping. Key input is an example. (And also, there's no room to store both, because events are immediate datatypes for efficiency reasons.) |
Date | User | Field | Action | Change |
---|---|---|---|---|
12-Jan-2010 23:33 | carl | Comment : 0001897 | Added | - |
12-Jan-2010 23:28 | carl | Fixedin | Modified | => alpha 97 |
12-Jan-2010 23:28 | carl | Status | Modified | reviewed => built |
12-Jan-2010 20:52 | carl | Description | Modified | - |
12-Jan-2010 20:52 | carl | Code | Modified | - |
12-Jan-2010 20:52 | carl | Status | Modified | submitted => reviewed |
12-Jan-2010 02:22 | Ashley | Ticket | Added | - |