O
O
Optimist2020-03-03 13:08:55
linux
Optimist, 2020-03-03 13:08:55

What method can be used to compare the coordinates of pressing the sensor and buttons in the software interface?

There is self-written software in C ++. It spins on information terminals with Linux. There is a problem: sometimes it happens that users complain that they pressed the "correct" number on the screen, and "wrong" was written in the input field. The user did not notice this and the problems went further. Calibrating the monitor sensor does not help. The problem pops up from time to time. For parsing, we want to log user actions (clicks on the screen sensor) and compare them with the interface elements that were clicked.
Something like this:
2020-02-24 10:56:17 Sensor pressed (coordinates 999/888). "Blank area"
2020-02-24 10:56:18 Sensor pressed (coordinates 777/223). Button '2'

The first thing that came to our mind was to split all interfaces into areas and track whether you got into the area when you clicked or not. The solution from the point of view of development is long, it has to be hemorrhaged with hundreds of elements lined up and must be accompanied in the future when changing / adding interfaces.

Second: train the neuron. The decision from the point of view of development is long, because never did, but it is not necessary to accompany in the future when changing / adding interfaces.

Question: In general, what methods are there for such a comparison/solution of the problem? Maybe there is already something ready? with ready code? Tell me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2020-03-03
@maaGames

Resistive screen + thick finger ...
From personal experience, I can only draw an analogy with tablets / smartphones. In the "numpad" of the terminal, the buttons are next to each other and there may be false clicks. I would reduce the "sensitive" area of ​​the button, for example, to only half of the real size (this can be done on the fly, without editing the layout). Those. to press it was necessary to press directly on the center of the button, and not at least in what place to poke it. In this case, with a false positive, the finger will fall between the buttons and nothing will be written. Still, this is better than the wrong number being entered.
In the post office, there was such a cheap resistive screen that you had to press with your knuckle to work. (maybe the protective glass was not removed ...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question