RE: Proposal for mousewheel events

Oops... I submitted an alternate multiple-device proposal before I read
Stéphane's. Looks like we were thinking similar things, but he went a bit
farther.

Regards-
Doug
 

Doug Schepers wrote:
| 
| A related idea is to indicate which wheel this is, on a 
| device with multiple
| wheels. I think that this could be captured in a similar way as e.g.
| "click.button", with a "event.device". "device" would be a 
| enumeration of
| the connected devices (0 for the primary device, 1 for the 
| secondary, etc.) 
| 
| So, you would have:
|  event.x.details
|  event.y.details
|  event.x.wheelDelta
|  event.y.wheelDelta
|  event.device
| 
| You would also have booleans for altKey, ctrlKey, metaKey, 
| and shiftKey, as
| Maciej suggested. It might also be nice to have "target" 
| exposed so that if
| the wheel *is* attached to the pointer device, you could grab 
| the currently
| focused object to receive the events.
| 
| Regards-
| Doug

Received on Tuesday, 11 April 2006 20:20:03 UTC