touchscreen

Reload tslib touch screen calibration

你离开我真会死。 提交于 2019-12-04 17:04:40
Background: I am working on a somewhat large Qt-based GUI which handles all user interaction with a touch screen. The program is designed such that the user should not need to access a command prompt in order to do anything, including recalibrating the touch screen. I have written an imitation of tslib's ts_calibrate utility which runs as a QWidget and can modify tslib's calibration file at /etc/pointercal . However, although I can modify the calibration file, changes to the calibration do not seem to be applied until I close and restart the program. I have written a script which can handle re

Smallest button size on a touchscreen

大憨熊 提交于 2019-12-04 16:03:19
I'm involved in writing a touchscreen application for a medical device. The program is kiosk-like, in that the start menu, etc, will not be accessible to the user, and the user will use an onscreen keyboard to type any text in the rare event that they need to. The spec'd screen size is 1280x1024. The question is this: What's the minimum touchable button size for a reasonable interface? I'm thinking that an American dime is a reasonable minimum size in all directions, with the reasoning being that a dime is about as small as we can expect people to feel with their fingers (it's got a diameter

Touch Scrolling ScrollViewer in WPF App with RealTimeStylus Disabled

女生的网名这么多〃 提交于 2019-12-04 15:25:51
问题 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 through WM_TOUCH. The problem is that disabling the RealTimeStylus support seems to also disable the user's ability to scroll a ScrollViewer using touch - normally the user can pan around ScrollViewers with their fingers, but if RealTimeStylus

Algorithm to implement kinetic scrolling

↘锁芯ラ 提交于 2019-12-04 07:44:23
问题 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 different programming field may also suit. 回答1: I implemented one myself recently. These are the steps I took. You need to measure the velocity of your cursor (either mouse cursor or finger) Implement a simple particle physics loop. Information about

Best way to detect touchscreens (ipad, iphone, etc)?

你离开我真会死。 提交于 2019-12-04 07:09:45
I need to load some additional CSS to my page if its being viewed on a touch screen device like an ipad or iphone. Whats the easiest way to do this? Thanks Easiest is arguably http://www.modernizr.com/ . For iPad you can try: if (window.Touch) { alert("touch my ipad/iphone/ipod"); } else { alert("no touch!"); } I'd venture to guess that iPhone works the same way. You can also use CSS media queries to produce something like this: <link rel="stylesheet" media="all and (max-device-width: 480px)" href="iphone.css"> <link rel="stylesheet" media="all and (min-device-width: 481px) and (max-device

Internet Explorer + Windows8 Touchscreen issues

你。 提交于 2019-12-04 06:15:12
We are experiencing an issue related to Google Maps API V3 . The issue is that while we drag the Marker the map also starts dragging. We are experiencing this issue ONLY on Touch Screens in Windows 8 Environment + Internet Explorer , its fine on NORMAL screens / Mobile Screens - IPaid/ other browsers (Safari and FireFox). We used below solution, but it throws error ( eval javascript error ) in Internet Explorer9 and 10 : google.maps.event.addListener(marker, 'dragstart', function(){ mapObject.setOptions({ draggable: false }); }); google.maps.event.addListener(marker, 'dragend', function(){

Longpress / longclick event support / plugin in jQuery

邮差的信 提交于 2019-12-04 05:30:44
I'm working on a website which requires mouseover menu's. I would not recommend mouseover menu's from an accessibility point of view, but it's pretty easy to implement using jQuery. The problem: we also need to support touchscreen devices (tablets). On such a device you don't have a mouse and, so the mouseover event is not working. I was hoping for jQuery to have a longpress event, but it doesn't. I did find a jQuery longclick plugin using Google, but it was for jQuery 1.4, so I'm not keen on using that. Also the jQuery plugin site is under maintenance at the moment, so that is not very

How to programmatically disable edge swipe gesture of the windows 10 tablet screen?

只谈情不闲聊 提交于 2019-12-04 04:15:32
Tried both programmatically and manually modify the registry for both DisableCharmsHint and DisableTLcorner to 1 under EdgeUI of immersiveShell (to disable touch screen swipe edges), after restart nothing happens. Just want to disable the swipe from edges to prevent user from accessing other application but just my application as currently opened, and will later enable the swipe edges again once my application is closed (back to normal). the application running is a windows form (not WPF) c# app coming from the desktop and run in the windows 10 tablet. is there any other way to prevent user

Touchscreen Kivy app for Raspberry Pi

[亡魂溺海] 提交于 2019-12-03 17:28:46
Here's the scenario: I've written a gui using the python framework Kivy , and I want to run it on a raspberry pi with this touchscreen . I've done the installation fine, and TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen FRAMEBUFFER=/dev/fb1 nohup startx & gets the xwindow desktop gui running fine. I've been unable to get my kivy gui working, though. I was able to get a test tkinter application working ok, by setting the DISPLAY environment variable. I tried putting the following at the top of my kivy app, but to no avail: os.environ['SDL_VIDEODRIVER'] = 'fbcon' os.environ['SDL

How to handle ButtonField & BitmapField Click (Touch) events in Blackberry Storm?

佐手、 提交于 2019-12-03 16:43:58
I have created a ButtonField & a BitmapField like.. public class MyCanvas extends MainScreen implements FieldChangeListener { HorizontalFieldManager hfm; private Bitmap startBitmap; private BitmapField startBitmapField; private ButtonField okButton; MyCanvas() { hfm = new HorizontalFIeldManager(); startBitmap = Bitmap.getBitmapResource("start.png"); startBitmapField = new BitmapField(startBitmap); startBitmapField.setChangeListener(this); hfm.add(startBitmapField); okButton = new ButtonField("Ok", ButtonField.CONSUME_CLICK | ButtonField.NEVER_DIRTY); okButton.setChangeListener(this); hfm.add