Author: Andreas Leitgeb <avl@logic.at>
Type: Project
Tcl-Version: 8.7
State: Draft
Vote: Pending
Created: 30-Nov-2011
Post-History:
Abstract
This TIP proposes a change to Tk's Events such as to support new features of modern pointer devices (mice) in a platform-independent way.
Rationale
Modern pointing devices (mice) do have more controls beyond the standard three buttons and one-dimensional scrolling gadget. They often have any of these as well:
Tilt-able scroll wheel
A second wheel for horizontal scrolling
A scroll-ball rather than a scroll wheel (see Apple's "mightymouse")
Additional "forward" and "backward" buttons
even more buttons...
On Linux platform, bind'ing on
On Windows platform, the system offers different types of events for certain different controls. An app would e.g. register extra to receive horizontal scroll events and those extra buttons. (This is gathered from hearsay.)
Proposal
Just like the MouseWheel event that was added to Tk in response to wheel-mice filling the market, we'd have to define new events for each new control.
For legacy-reasons, the dichotomy between vertical scroll wheel and buttons 4 and 5 will need to be preserved, maybe as well as the buttons 6 and 7 for horizontal scrolling.
Any extra buttons could then be either named "X1", "X2", "X3", ... or
numbered 8, 9, 10, ... which would reflect as bind events
For horizontal scrolling,
At this stage of this TIP the decision isn't yet made.
Copyright
This document has been placed in the public domain.