|
Hi all!
I am developing an application which will work for two monitors. The additional monitor has a touch screen. Now I want to get the force of click for it. I found it seems like some APIs can get it because some applications can respond for it. But I don't know which API(s) can do it. Is here somebody be kind to tell me? Thank you!
Sincerely!
There is some white cloud floating on the blue sky. That's the landscape I like.
|
|
|
|
|
|
Nope...
You hadn't get my meaning. I try to find a API to get the value of strength when I click the touch pad. Not insert mouse event into message-queue.
There is some white cloud floating on the blue sky. That's the landscape I like.
|
|
|
|
|
Sorry for my misunderstanding (read error) . You mean touch pressure strength or, I think, sometimes called pressure size. I'm not sure that this is standard information beside location information reported by device. This theoretically possible feature may not be carried out by all manufacturers.
|
|
|
|
|
Thank for your reply. I had notice that Photoshop can get the pressure strength from some touch pad. So I try to find which way Adobe used to implement it. But I found nothing. I guess that is a standard of Adobe. So I will try to develop my application by the API provided from vendor. Thanks again!
There is some white cloud floating on the blue sky. That's the landscape I like.
|
|
|
|
|
I don't think such a thing is possible. A mouse button can either be in a depressed or a released state (same with a touch pad buttons, and clicks generated by touching somewhere on the touch area). Generally, there's no way to find out how "hard" a button was pressed.
If a device is sensitive to such data, and is exposing APIs to capture that information, then that would be a different story. However, it is not the case with regular mouse and touch pad devices.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Touch screen devices usually report the touch pressure.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Touch screen devices usually report the touch pressure
Agree, however these shouldn't be any inbuilt functionality in the windows for same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok Agree, however these shouldn't be any inbuilt functionality in the windows for same!
That's why I wrote this[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: That's why I wrote this[^].
Apology... not able to see it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
CPallini wrote: Touch screen devices usually report the touch pressure.
Wrong. If you can provide an API link on MSDN to support your theory, I'll be happy to read it.
The need for applying "pressure" comes from using a touch screen that is based on resistive touch technology. In this case, the pressure applied will bring two different electrical layers together at one point, and when they touch, there's a change in the electrical current there, which is registered as a "touch". No matter how hard or gently you touch, the event is going to be either touched, or not. There's no way to measure the pressure.
If I were to use a capacitative touch screen, it works based on the weak electric signals emitted from the skin. Now, where is the pressure on that?
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Pressure is computed, see, for instance http://www.analog.com/static/imported-files/data_sheets/AD7877.pdf[^], "TOUCH-PRESSURE MEASUREMENT" section.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
That is for devices manufactured by a certain company. I indicated in my first post that such things are possible if the manufacturer has implemented such a feature and is exposing APIs to capture those details. However, that would be an edge case.
But most devices are simpler, and Windows certainly does not provide you features to measure "touch pressure".
Again, I'll ONLY accept an API from MSDN that tells me what the touch pressure was when a touch event happens.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh R Subramanian wrote: Again, I'll ONLY accept an API from MSDN that tells me what the touch pressure was when a touch event happens.
Unfortunately what you require is not, in my opinion, what the OP has asked for
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Unfortunately what you require is not, in my opinion, what the OP has asked for
Of course, it is. The OP asked a question that is more general (and not specific to devices built by the analog.com company).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
You impertinent youngster!
Well, I surrender...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Well, I surrender...
Are you French? Oh, sorry. Never mind - this surrendering is about the touch screen discussion.
Good discussion though, as usual (THHB).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh R Subramanian wrote: Good discussion though, as usual (THHB)
Like the old gold days.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Like, certainly the good old days. Life's taking me for a ride, you know? It's becoming increasingly hard for me to find time to do what I want, instead of doing what I'm expected to do.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
I usually do what I want, anyway. I suppose my managers are not so happy...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Both of you make me some weak!
Originally I am just ask a question. But you let the discussion of my question become a chat-room! I am FAINTING!
There is some white cloud floating on the blue sky. That's the landscape I like.
|
|
|
|
|
This time, I win!
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Have you checked if the vendor provides a library to access touch screen functionalities?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
cpallini's correct... this type of information would only come from software provided by the vendor and will be vendor specific... meaning one vendor's libraries or API calls will not work with anothers
|
|
|
|