Multi Touch Mouse For Mac

  1. Multi Touch Mouse For Mac Os
  2. Multi Touch Mouse For Macbook Air
  3. Best Mouse For Mac Mini
  4. Multi Mouse Click
  5. Best Touch Mouse
  6. Best Wireless Mouse For Mac

When users touch and move their fingers on the trackpads of the MacBook Air and more recent models of the MacBook Pro, OS X generates multitouch events, gesture events, and mouse events. The trackpad hardware includes built-in support for interpreting common gestures and for mapping movements of a finger to mouse events. In addition, the operating system provides default handling of gestures; you can observe how OS X handles these gestures in the Trackpad system preference. You can also create applications that receive and respond to gestures and multitouch events in distinctive ways.

Trackpad is the world's first alternate Windows driver for Apple Multi Touch and Force Touch trackpads of the Apple Macbook, Macbook Pro / Retina and Air notebooks. Trackpad driver easily and automatically integrates itself with the Apple Boot Camp drivers, and comes with a Trackpad Control Module, the comprehensive control panel: Latest. Terminal: How to Disable Multi-Touch on Apple Magic Mouse - how-to-disable-multi-touch-on-apple-magic-mouse.bash.

An application should not rely on gesture-event or touch-event handling as the sole mechanism for interpreting user actions for any critical feature, because users might not be using a trackpad. Touch-event features should supplement the conventional way of conveying user commands.

Gesture events are a species of multitouch events because they’re based on an interpretation of a sequence of touches. In other words, gestures are a series of multitouch events recognized by the trackpad as constituting a gesture. Gestures and touch events require you to adopt a different approach for handling them. To understand these approaches it’s useful to know how and when the events are generated, how they are delivered to your application, and what kind of information they contain about the actual touches on the trackpad.

Gestures are Touch Movements Interpreted By the Trackpad

Gestures are particular movements of fingers on a touch-sensitive surface, such as a trackpad’s, that have a conventional significance. The trackpad driver interprets some of these movements as specific gestures:

  • Pinching movements (in or out) are gestures meaning zoom out or zoom in (also called magnification).

  • Two fingers moving in opposite semicircles is a gesture meaning rotate.

  • Three fingers brushing across the trackpad surface in a common direction is a swipe gesture.

  • Two fingers moving vertically or horizontally is a scroll gesture.

The system delivers low-level events representing specific gestures to the active application, where they’re packaged as NSEvent objects and placed in the application’s event queue. They go along the same path as mouse events for delivery to the view under the mouse pointer. An NSWindow object delivers a gesture event to the view by calling the appropriate NSResponder method for the gesture: magnifyWithEvent:, rotateWithEvent:, or swipeWithEvent:. If the view does not handle a gesture, it travels up the responder chain until another object handles it or until it is discarded.

Types of Gesture Events and Gesture Sequences

The AppKit framework declares the NSEventType constants for gestures such as NSEventTypeMagnify and NSEventTypeQuickLook.

As users touch and move their fingers across the trackpad, the trackpad driver generates a gesture sequence, which is roughly concurrent with the multitouch sequence described in Touch Events Represent Fingers on the Trackpad but contained within it. A gesture sequence begins when the driver first detects a gesture and ends when the driver determines the gesture has ended. In most cases, you do not need to be aware of the gesture sequence; you only need to implement the NSResponder method for handling a specific gesture. However, if you want to commit a change related to a specific gesture, such as register an undo operation or perform detailed drawing, you can implement the NSResponder method for that gesture and examine the gesture’s phase property. Because a gesture can either end or be cancelled, you need to be prepared to handle both NSEventPhaseEnded and NSEventPhaseCancelled.

Multi Touch Mouse For Mac

Multi Touch Mouse For Mac Os

If you need to commit a change related to a specific gesture, you should be aware of some of the behavioral peculiarities of gesture detection. First, multiple gesture sequences can occur within a single multitouch sequence. For example, the user might first pinch a view and then swipe it without removing all of their fingers from the trackpad. Moreover, between the beginning and end of a gesture sequence, the trackpad driver might first interpret a movement as one gesture and then switch its interpretation to another gesture. Currently, however, this happens only for magnify and rotate gestures. Scroll and swipe gestures, once begun, are locked to that gesture until the gesture ends.

As it generates gestures, the trackpad hardware might also emit the touch events that make up the gesture; the system then routes the touch events to the application along with the gesture events. Some trackpads, however, do not support this feature.

Note:NSGestureRecognizer objects do not receive trackpad touches.

The Trackpad preference pane includes an option for scroll gestures: two fingers moving the content view of a scroll view around. Technically, scroll gestures are not specific gestures but mouse events. Unlike a gesture, a scroll wheel event (that is, an event of type NSScrollWheel) can have both a phase property and a momentumPhase property. The momentumPhase property helps you detect momentum scrolling, in which the hardware continues to issue scroll wheel events even though the user is no longer physically scrolling. Devices such as Magic Mouse and Multi-Touch trackpad enable momentum scrolling.

During non momentum scrolling, AppKit routes each scroll wheel event to the view that is beneath the pointer for that event. In non momentum scroll wheel events, momentumPhase has the value NSEventPhaseNone.

During momentum scrolling, AppKit routes each scroll wheel event to the view that was beneath the pointer when momentum scrolling started. In momentum scroll wheel events, phase has the value NSEventPhaseNone. When the device switches from user-performed scroll events to momentum scroll wheel events, momentumPhase is set to NSEventPhaseBegan. For subsequent momentum scroll wheel events, momentumPhase is set to NSEventPhaseChanged until the momentum subsides, or the user stops the momentum scrolling; the final momentum scroll wheel event has a momentumPhase value of NSEventPhaseEnded.

It’s important to understand how the difference in the event-routing behavior can affect the events you receive, depending on the scrolling device users are using. When using a Multi-Touch trackpad, users must physically stop scrolling before they can move the pointer, so you won’t receive any mouse-movement events during a scroll. In contrast, a Magic Mouse lets users move the pointer and click in the middle of a scroll. Because a scroll doesn’t end until the user lifts their finger, any additional movement by a finger resting on a Magic Mouse is still considered to be part of the original scroll, which means that the event’s phase property is NSEventPhaseChanged and not NSEventPhaseBegan, as you might expect. If you process scroll wheel events directly, be prepared to receive mouse-movement events (such as NSLeftMouseDown, NSRightMouseDragged, and NSOtherMouseUp) between NSEventPhaseBegan and NSEventPhaseEnded when a Magic Mouse is in use.

Handling Gesture Events

To handle an event for a specific gesture—such as a rotation, pinching, or swipe movement—implement in your custom view the appropriate NSResponder method—that is, rotateWithEvent:, magnifyWithEvent:, or swipeWithEvent:. Unlike the procedure for handling multitouch events, your custom view does not have to “opt-in”. When the mouse pointer is over your view and the user makes a gesture, the corresponding NSResponder method is called to handle the event. It is also called if the views earlier in the responder chain do not handle the event.

Each of the gesture-handling methods has an NSEvent parameter. You may query the event object for information pertinent to the gesture. For the recognized gestures, the following event-object attributes have special importance:

  • Zoom in or out (NSEventTypeMagnify)—The magnification accessor method returns a floating-point (CGFloat) value representing a factor of magnification.

  • Rotation (NSEventTypeRotate)—The rotation accessor method returns a floating-point value representing the degrees of rotation, counterclockwise.

  • Swipe (NSEventTypeSwipe)—The deltaX and deltaY accessor methods return the direction of the swipe as a floating-point (CGFloat) value. A non-zero deltaX value represents a horizontal swipe; -1 indicates a swipe-right and 1 indicates a swipe-left. A non-0 deltaY represent a vertical swipe; -1 indicates a swipe-down and 1 indicates a swipe-up.

The rotate and magnify gestures are relative events. That is, each rotateWithEvent: and magnifyWithEvent: message carries with it the change of rotation or magnification since the last gesture event of that type. For zooming in or out, you add the value from the magnification accessor to 1.0 to get the scale factor. For rotation, you add the newest degree of rotation to the view’s current rotation value. Listing 8-1 illustrates how you might do this.

Listing 8-1 Handling magnification and rotation gestures

Note: The NSEventTypeGesture constant shown in Listing 8-1 represents a “generic” gesture, which is generated by the trackpad driver when movements on the trackpad do not result in a specific gesture. You may safely ignore this event type.

To handle a swipe gesture simply requires you to determine the direction of swipe by analyzing the deltaX and deltaY values. The code in Listing 8-2 responds to swipes by setting a fill color for the implementing view.

Listing 8-2 Handling a swipe gesture

You can also query the passed-in NSEvent object for other information related to the gesture event, including the location of the mouse pointer in window coordinates (locationInWindow), the timestamp of the event, and any modifier keys pressed by the user.

Because a gesture event is derived from a multitouch sequence, it might seem reasonable to query the NSEvent object for its touches by calling touchesMatchingPhase:inView:. However, the returned NSTouch objects might not be an accurate reflection of the touches currently in play. Thus you should not examine touch objects in the gesture-handling methods. The only reliable set of touch objects is returned in touch-event handling methods such as touchesBeganWithEvent:. For more on these methods, see Touch Events Represent Fingers on the Trackpad.

As mentioned in Types of Gesture Events and Gesture Sequences, you can also use the phase property of a gesture responder to perform actions such as coalescing all the gesture changes between start and end points of the gesture so that you can undo the complete sequence instead of just one step of the sequence.

If your custom view handles one of the API-supported gestures, your view’s implementation is called instead of any other implementation if your view is before the other object in the responder chain. However, there are certain system-wide gestures, such as a four-finger swipe, for which the system implementation takes precedence over any gesture handling an application performs.

Note: You should never handle gesture events by examining events by type in a tracking loop—that is, a loop controlled by methods such as nextEventMatchingMask:untilDate:inMode:dequeue:.

Touch Events Represent Fingers on the Trackpad

Instead of handling a gesture, you could choose to track and handle the “raw” touches that make up the gesture. But why might you make such a choice? One obvious reason is that OS X does not recognize the particular gesture you are interested in—that is, something other than magnify (pinch in and out), rotate, or swipe. Or you want your view to respond to a system-supported gesture, but you want more information about the gesture than the AppKit framework currently provides; for example, you would like to have anchor points for a zooming operation. Unless you have reasons such as these, you should prefer gestures to raw touch events.

The following sections discuss the multitouch sequence that delimits a touch event in an abstract sense, point out important touch-event attributes, and show you how to handle touch events.

Multi Touch Mouse For Macbook Air

A Multitouch Sequence

When a user touches a trackpad with one or more fingers and moves those fingers over the trackpad, the hardware generates low-level events that represent each of those fingers on the trackpad. The stream of events, as with all type of events, is continuous. However, there is a logical unit of touches that together, represent a multitouch sequence. A multitouch sequence begins when the user puts one or more fingers on the trackpad. The finger can move in various directions over the trackpad, and additional fingers may touch the trackpad. The multitouch sequence doesn’t end until all of those fingers are lifted from the trackpad.

Within a multitouch sequence, a finger on the trackpad typically goes through distinct phases:

  • It touches down on the trackpad.

  • It can move in various directions at various speeds.

  • It can remain stationary.

  • It lifts from the trackpad.

The AppKit framework uses objects of the NSTouch class to represent touches through the various phases of a multitouch sequence. That is, an NSTouch object is a snapshot of a particular finger—a touch—on the trackpad in a particular phase. For example, when a touch moves in a certain direction, the AppKit represents it with an NSTouch instance; it uses another NSTouch object to represent the same finger when it lifts from the trackpad.

Note: This behavior is different from touch objects on iOS, where a UITouch object representing a finger on the screen persists through a multitouch sequence and is mutated throughout that sequence.

Each touch object contains its phase as a property whose value is one of the NSTouchPhase constants shown in Listing 8-3. It also has an identity property that you use to track an NSTouch instance through a multitouch sequence. (Touch Identity and Other Attributes describes touch identity in more detail.) Figure 8-2 illustrates a multitouch sequence and the role of these properties in this sequence.

AppKit attaches the touches in a multitouch sequence to the view that is under the mouse pointer when the first finger in the sequence touches down on the trackpad. A touch remains attached to this view until it has ended (that is, the finger lifts) or until the multitouch sequence is cancelled. Any interpretations of touches in a multitouch sequence must refer to that view, and that view only. You cannot have touches associated with different views in the same multitouch sequence. A touch, as represented by a NSTouch object, does not have a corresponding screen location or location in its view. But you can determine its changing positions on the trackpad, and from that map a delta value for transforming the view.

Listing 8-3 Constants for touch phases

Touch Identity and Other Attributes

The NSTouch defines a number of properties for its instances. A particularly important property is identity. As you may recall from the previous discussion, an application creates an NSTouch object to represent the same finger on the trackpad for each phase it goes through in a multitouch sequence. Although these are different objects, they have the same identity object value, enabling you to track changes to a touch throughout a multitouch sequence. You can determine if two touch objects refer to a particular finger on the trackpad by comparing them with the isEqual: method:

Both touch-identity objects and NSTouch objects themselves adopt the NSCopying protocol. You can therefore copy them. This capability means you can use touch-identity objects as keys in NSDictionary collections.

Best Mouse For Mac Mini

Two other important and related properties of NSTouch objects are normalizedPosition and deviceSize. A touch has no visible location on the screen. (The mouse pointer only identifies the view that first receives touch events if it implements the required methods.) A touch does, however, have a position on the trackpad. The trackpad has a coordinate system defined by an origin of (0,0) in the lower-left corner of the trackpad and a height and width defined by deviceSize. Its position in this coordinate system is returned by normalizedPosition. Using these two properties you can derive delta values for touch movements and apply these to transformations of the manipulated view. This is illustrated in the code example in Listing 8-6.


Resting Touches

The trackpad driver might identify one or more fingers (and thumb) as resting. This “resting” status means that the finger or thumb is physically on the digitizer, but the driver determines that it should not be used for input. For example, with the buttonless trackpads, a user may rest their thumb on the bottom section of the trackpad, just as one rests their arms on an arm rest. This digit is ignored as input, and its movement does not move the mouse pointer.

The driver might also transition a touch into or out of a resting status at any time, based on its evaluation. Movement of the resting finger or thumb is not always the determinant. A resting finger that moves might not necessarily transition out of 'resting'. On the other hand, a resting finger or thumb does not have to physically move at all to transition in and out of 'resting'.

Even if a touch is flagged as “resting” to denote that its should be ignored, the driver still generates touch data for it and sends an event to the application for each touch phase. By default, these events are not delivered to views and are not included in an event’s set of touches. However, you can turn on this capability by invoking the NSView method setWantsRestingTouches: with an argument of YES. If you are not accepting resting touches, be aware that NSTouchPhaseBegan and NSTouchPhaseEnded events are generated when a touch transitions from or to a resting state.

Handling Multitouch Events

A view by default does not accept touch events. To handle touch events, your custom view must first call the NSView method setAcceptsTouchEvents: with an argument of YES. Then your view must implement the NSResponder methods for touch-event handling:

For custom subclass of NSView, you should implement each of these methods. If you subclass an class that handles touches, you don’t need to implement all these methods methods, but you should call the superclass implementation in the methods you do override.

An application invokes each of these methods on the view when a touch enters a phase—that is, when a finger touches down, when it moves on the trackpad, when it lifts from the trackpad, and when the operating system cancels a multitouch sequence for some reason. More than one of these following methods could be called for the same event. The application first sends these messages to the view that is under the mouse pointer. If that view does not handle the event, the event is passed up the responder chain.

The single parameter of these responder methods is an NSEvent object. You can obtain the set of NSTouch objects related to a given phase by sending a touchesMatchingPhase:inView: to the event object, passing in the constant for the phase. For example, in the touchesBeganWithEvent: method you can get touch objects representing fingers that have just touched down with a call similar to this:

The operating system calls touchesCancelledWithEvent: when an external event—for example, application deactivation—interrupts the current multitouch sequence. You should implement the touchesCancelledWithEvent: method to free resources allocated for touch handling or to reset transient state used in touch handling to initial values.

The remaining code examples are taken from the LightTable sample-code project. First, the project declares two static arrays to hold the initial touches and the current touches:

Listing 8-4 illustrates an implementation of the touchesBeganWithEvent: method. In this method, the view gets all touches associated with the event and, if there are two touches, stores them in the two static arrays.

Listing 8-4 Handling touches in touchesBeganWithEvent:

When one or both of the fingers move, the touchesMovedWithEvent: method is invoked. The view in LightTable implements this method as shown in Listing 8-5. Again, it gets all the touch objects associated with the event and, if there are exactly two touches, it matches the current touches with their initial counterparts. Then it computes the delta values for origin and size and, if these exceed a certain threshold, invokes an action method to perform the transformation.

Listing 8-5 Handling touches in touchesMovedWithEvent:

Listing 8-6 shows how the project computes the delta values for transforming the origin of the view. Note how the code uses values from the NSTouch properties normalizedPosition and deviceSize in this computation.

Listing 8-6 Obtaining a delta value using normalizedPosition and deviceSize

Multi Touch Mouse For Mac

Finally, the view implements the touchesEndedWithEvent: and touchesCancelledWithEvent: methods, as shown in Listing 8-7, primarily to cancel tracking of the event.

Listing 8-7 Handling ending and cancelled touches


Mouse Events and the Trackpad

The operating system interprets a single finger moving across the trackpad as a mouse-tracking event, and moves the mouse pointer in a corresponding speed and direction. The single-finger movement generates both gesture events and mouse events, although the gesture events are ignored unless the view accepts touches. Movements of more than one finger on the trackpad do not move the pointer, although they may still result in the generation of mouse events used in scrolling. An exception to this is a buttonless trackpad, where two fingers may be physically touching the trackpad while the pointer is moving because one of them is resting.

If a mouse event is generated by a touch event, the subtype of the mouse event is NSTouchEventSubtype. You could evaluate mouse-event objects to determine when to ignore mouse events in favor of touch events when both are generated. (This advice is not applicable to scroll wheel events.)

You should not attempt to extract touches from a mouse event using the touchesMatchingPhase:inView: method. Although you can check the subtype of the event object to see if a touch generated the mouse event, you cannot correlate the mouse event to any particular touch. Further, you cannot query a touch event to find out if it also generated a mouse event.


Multi Mouse Click

Best Touch Mouse

Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use Privacy Policy Updated: 2016-09-13

SOME OF THE Frequently Asked Questions

Q.: What does the Trackpad++ Control Module user interface look like?
A.:Here is a screen shot. (Note: in the most recent version, both the appearance and the features may be different).

Q.: Why alternate trackpad driver for Windows 7 / 8 / 10?
A.: Apple trackpads are the perfect, probably world's best, touchpad devices. And the MacOS native driver is good: it unleashes almost all of the amazing trackpad capabilities. But the stock Windows driver provided by Apple for Boot Camp is, unfortunately, very far from being perfect. No support of 3+ finger gestures. No accelerated scrolling (yet the scrolling is too sensitive!). Dragging is just usable. And there is no vital option to ignore accidental input when typing. This is just an incomplete list of the issues every Boot Camp user is experiencing. So, the need of the better trackpad driver is obvious. In fact, if you are asking this question, then probably you have never tried to use Windows on an Apple Macbook Retina / Pro / Air :)

Q.: Do I need to install the Boot Camp drivers first? What are the supported Boot Camp and Windows versions?
A.: Yes, the Boot Camp drivers shall be installed (but normally it's already done automatically by Apple installer, right after you install the Windows). The supported Boot Camp versions are 3.0 - 3.3, 4.0, 4.1, 5.0, 5.1, 6.0 and 6.1

Q.: Which devices except of the Macbook, Macbook Pro and Macbook Air are supported?
A.: NONE. The only supported devices are: Force Touch Macbook Pro 16' Late 2019, Macbook Pro 13' / 15' Mid 2020, Mid 2019, Mid 2018, Mid 2017 and Late 2016, Macbook 12' Early 2015, Early 2016, Mid 2017, Macbook 13' / 15' Early 2015 and Mid 2015; classic Multi Touch models: Macbook Pro (Mid 2009, Mid 2010, Early 2011, Late 2011, Mid 2012 / Retina, Late 2012 / Retina, Early 2013 / Retina, Late 2013 / Retina, Mid 2014 / Retina) and Macbook Air (Late 2010, Mid 2011, Mid 2012, Mid 2013, Early 2014, Early 2015, Mid 2017, Late 2018, Mid 2019, Early 2020).
If you search for a Bluetooth Magic Trackpad / Magic Trackpad 2 driver installer and control panel for Boot Camp or PC, please see the following solution: an ExtraMagic.


Best Wireless Mouse For Mac

Q.: Is it safe to install the Trackpad++? And, just in case, how do I remove the driver?
A.: Yes, it's completely safe to install, especially now when the driver is Microsoft-cross-signed, so its origin and integrity and fully assured. Just follow the simple installation instructions. Also (optional, but recommended step) you can install the Power Plan Assistant software first. In fact, the Trackpad++ does not interfere with any of the Boot Camp drivers installed. Instead, it seamlessly integrates into your existing Boot Camp installation. The setup procedure is transparent and fully automatic. If you would like to remove the Trackpad++ from your system, you can simply uninstall the Control Module (as you do with any Windows application - via Windows Control Panel) and, optionally, roll back to a 'HID-Compliant Mouse' driver via Windows 7 / 8 Device Manager. When the Trackpad++ Control Module is not installed anymore, the system will use the settings of the Boot Camp control panel, as if the Trackpad++ had never been installed.

Q.: Even with Trackpad++, the scrolling in my web browser isn't as smooth as in MacOS (Safari). Any suggestions?
A.: First of all, even in MacOS, other browsers do not provide the same ultra-smooth experience as Safari. So, the question is not just about the trackpad driver settings, but about how each specific browser handles the scrolling events it receives from the driver. For Windows, the answer would be - consider using the Opera or Firefox web browser. These browsers work best with Trackpad++, providing almost as smooth and as intuitive scrolling experience as Safari in MacOS. As to the rest of the browsers, the experience may not be 100% perfect. In any case, the Trackpad++ significantly improves scrolling behavior vs. the Boot Camp driver, so you should get noticeable improvement regardless of the web browser you are using.

Q.: I have got a question which is not listed there! How can I get an answer?
A.: Please feel free to contact us.