Disable clicks

When on a Tablet PC, a touch on the screen with the stylus is interpreted as a click. The sensitivity is adjusted so that even if your pen glides a little, it is still interpreted as a click; you need to move a certain distance before it becomes a drag-n-drop event.

In a laptop style app, you never want to "click" inside an area; the only events you are interested in are mousedown and mouseup.

What I find is that my Windows tablet driver delivers muscle and mouse together for strokes that are shorter than a certain time; this way my app only sees one click and draws the dot where the em dash should have been.

Now I know it can be turned off because that's exactly what Windows Journal did. I don't know which system level / flag I should be using, however, for this to work. It would be even better if someone could tell me how to do this in Java, but since this is a platform specific I suppose I will probably have to call it dynamically.

Edit: I am no longer interested in the answer to this question as I am now using Xournal on Linux.

0


source to share


1 answer


In Java, you must be able to handle mouse clicks, move the mouse and mice, and ignore mouse click events in order to be able to program the desired behavior. This is independent of a higher-level drag event, which can often have a built-in tolerance for how far the mouse moves before it becomes dragged.



Of course, this was my experience with Java on touch-sensitive handheld devices.

+1


source







All Articles