The MindFusion Forums
Virtual Keyboard Components >> WPF >> TouchUp event - which key is pressed
https://mindfusion.eu/Forum/YaBB.pl?num=1571063199

Message started by sinisa on Oct 14th, 2019 at 2:26pm

Title: TouchUp event - which key is pressed
Post by sinisa on Oct 14th, 2019 at 2:26pm
Hello

I am using FPS virtual keyboard on touchscreen and on first pressing on button the OnKeyDown event is not triggered.
After second pressing OnKeyDown event is triggered.
Therefore I've added TouchUp event, which is correctly after first pressing on button triggered.
However, I cannot find the pressed button in the arrived TouchEventArgs.
How can I find out the pressed key in the TouchEventArgs?

Thank you.
TouchUpEvent_FindPressedKey.PNG ( 101 KB | 186 Downloads )

Title: Re: TouchUp event - which key is pressed
Post by Slavcho on Oct 14th, 2019 at 2:59pm
Hi,

Do you mean you are using original keyboard by FreezePro Software? You might check if more recent Mindfusion version isn't handling that better in your set up. Otherwise I guess try looping over keyboard.Layout.Keys and compare each key's coordinates with the touch position.

Regards,
Slavcho
Mindfusion

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.