Questions tagged [touchscreen]

A touchscreen is an electronic visual display that can detect the presence and location of a touch within the display area. (Wikipedia)

A touchscreen is an electronic visual display that can detect the presence and location of a touch within the display area. Wikipedia

Newer touchscreen electronics are generally capacitive whereas older less expensive designs are resistive. Resistive screens need physical contact and are more prone to wear.

See also:

  • for issues in programming touch interfaces.
  • for issues with multiple touch interfaces.
  • for question about different finger/stylus motion in a UI.
  • for question about using the touch hardware to recognize a gesture.
764 questions
113
votes
7 answers

How can I make a jQuery UI 'draggable()' div draggable for touchscreen?

I have a jQuery UI draggable() that works in Firefox and Chrome. The user interface concept is basically click to create a "post-it" type item. Basically, I click or tap on div#everything (100% high and wide) that listens for clicks, and an input…
artlung
  • 30,810
  • 16
  • 66
  • 118
92
votes
6 answers

How to use ADB to send touch events to device using sendevent command?

I am trying to send touch events to a device using AndroidDebugBridge, so that I can do some basic automation for UI tests. I have followed the discussion in LINK. I am able to use sendevent to simulate touch on emulators, but unable to do the same…
Harkish
  • 1,982
  • 2
  • 18
  • 30
77
votes
11 answers

Detecting a long press with Android

I am currently using onTouchEvent(MotionEvent event){ } to detect when the user presses my glSurfaceView is there a way to detect when a long click is made. I'm guessing if I can't find much in the dev docs then it will be some sort of work around…
Jack
  • 2,485
  • 5
  • 30
  • 53
68
votes
4 answers

Simulating mouse input programmatically in OS X

Is it possible to simulate the actions of a mouse from a program in OS X? Specifically, the short version is that I'm trying to simulate a touchscreen using two webcams. So assuming I can get X,Y positions, can I send information to the OS as a…
Rob Lourens
  • 12,044
  • 4
  • 58
  • 85
57
votes
5 answers

JavaScript mapping touch events to mouse events

I'm using the YUI slider that operates with mouse move events. I want to make it respond to touchmove events (iPhone and Android). How can I produce a mouse move event when a touchmove event occurs? I'm hoping that just by adding some script at the…
Questioner
  • 6,379
  • 15
  • 51
  • 87
36
votes
4 answers

How to determine if an Android device has a touchscreen?

I'm spending considerable time in making my UI to work with keyboard input only. But in the end I'm not sure whether I can rely on the assumption that Android devices all have touch screens. Is there a way to determine if an Android device has a…
Hidden Android
  • 2,644
  • 2
  • 15
  • 10
33
votes
3 answers

HTML5 Drag and Drop API on Touch Screen Devices

I was just wondering if the HTML5 API for Drag and Drop included support for touch screen displays. I was thinking of iPhone, but I know this isn't supported yet. I was wondering if that is just catching up on the part of Apple, to support HTML5…
Qcom
  • 16,009
  • 27
  • 82
  • 112
27
votes
4 answers

Get the co-ordinates of a touch event on Android

I'm new to Android, I've followed the hello world tutorial through and have a basic idea of what's going on. I'm particularly interested in the touch screen of my T-Mobile Pulse so just to get me started I want to be able to write the co-ordinates…
Joe
  • 273
  • 1
  • 3
  • 4
27
votes
6 answers

Getting the coordinates from the location I touch the touchscreen

I try to get the coordinates from the location where I hit the touchscreen to do put a specific UIImage at this point. How can I do this?
Lukas Köhl
  • 1,487
  • 2
  • 12
  • 26
26
votes
5 answers

Algorithm to implement kinetic scrolling

What are some good algorithms for creating a kinetic scrolling implementation? The feature would be tested on a custom UI list. While I am targeting mobile devices (those that do not have this feature built-in), any algorithm or code example from…
Bojan Milankovic
  • 837
  • 3
  • 11
  • 21
25
votes
2 answers

Touch Scrolling ScrollViewer in WPF App with RealTimeStylus Disabled

We are working on a WPF 4.5 application that will be run on Windows 8 computers with touchscreen monitors. We have disabled support for the RealTimeStylus following the directions on the MSDN, since we have some views that need multitouch support…
Chris W.
  • 927
  • 8
  • 16
21
votes
2 answers

Android: Programmatically detect if device has hardware touchscreen connected

I need to write a script to detect if the physical touchscreen is connected to my Android device at boot time. I tried to list the content of the folder /dev/input via adb and I obtain the following output: root@q88:/dev/input #…
Stephan
  • 291
  • 1
  • 2
  • 9
20
votes
1 answer

QTouchEvent instead QMouseEvent on Linux

I am trying to handle QTouchEvent from M3 touchscreen in Qt 5.9. I use Qt Finger Print example and it works fine on Windows 7 but on Ubuntu 16.04 I receive mouse events instead of touch events. Is it Qt's fault or wrong OS configuration? What is…
jaskmar
  • 3,136
  • 2
  • 15
  • 38
20
votes
2 answers

Is there a Java API for touching devices such as tablets?

I'm a java developer and I love this techonology. However, in my advisor next research we are going to use extensively touch-screen devices on Windows. This is a problem for me, because I'm used to programming on Linux and with Java. The question…
Marcos Roriz Junior
  • 3,924
  • 10
  • 48
  • 72
19
votes
2 answers

Enable USB debugging through Clockworkmod with adb

So, a few days ago my Nexus 7 got dropped, and now there's a big crack in the screen. The touchscreen is broken. That is, I can still see what happens, but it is unresponsive. I have found a way to completely control it through adb, and through…
SharkWipf
  • 386
  • 1
  • 4
  • 11
1
2 3
50 51