Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture touch pad input

I've looked everywhere for how to capture touch pad input for laptops but I can't seem to find anything for Chrome extensions/JavaScript.

Question: how can I capture the number of fingers down (not clicked, just down and potentially moving as you would with a mouse), their corresponding x,y coordinates, and their corresponding up events, for a touch pad on a laptop?

Clarifications:

  • I'm not interested in detecting touch screen events. Just touch pad events.
  • Can assume the touch pad lives on 3 year old or newer lap tops.
like image 231
N. Taylor Mullen Avatar asked Dec 24 '15 06:12

N. Taylor Mullen


People also ask

How does touchpad detect finger?

Touchpads operate in one of several ways, including capacitive sensing or resistive touchscreen. The most common technology used in the 2010s senses the change of capacitance where a finger touches the pad.

What can I use instead of my finger on a touchpad?

The answer I found is that u can use a anti-static conductive plastic (the plastics which appear to be shiny and have "keep away from children" warning :P). U can wrap a small piece of this plastic around the nib of a pen and use it as a stylus for your touchpad!

What is Touch Pad answer?

A touch pad is a device for pointing (controlling input positioning) on a computer display screen. It is an alternative to the mouse. Originally incorporated in laptop computers, touch pads are also being made for use with desktop computers. A touch pad works by sensing the user's finger movement and downward pressure.

What are the features of touch pad?

Select an item: Tap on the touchpad. Scroll: Place two fingers on the touchpad and slide horizontally or vertically. Zoom in or out: Place two fingers on the touchpad and pinch in or stretch out. Show more commands (similar to right-clicking): Tap the touchpad with two fingers, or press in the lower-right corner.


1 Answers

I can't find it by now, but I somewhere read about this topic. But the synopsis is simple: it's a draft/in development but no browser supports it by now. Here is the W3C draft: https://w3c.github.io/pointerevents/

like image 180
DaSch Avatar answered Oct 20 '22 11:10

DaSch