Skip to main content
babichfx
Inspiring
January 19, 2022
Question

SDK Ctrl key tracking

  • January 19, 2022
  • 1 reply
  • 379 views

Hey All!

 

Is it possible to track that ctr was pressed and released?

I want to differentiate the button behaviour rely on that.

 

I tried to use KEYDOWN Event, but it can be active just if any other meaningfull key (not only modifier key) was pressed with ctrl.

This topic has been closed for replies.

1 reply

Inspiring
May 31, 2022

Depending on the purpose, you can use the idle hook to track pressed keys. You just have to keep in mind that the detection is not immediate, and you'll have to wait for the timer tick to activate. Depending on what the system is doing, this can take a while, however it's usually about 100ms.

babichfx
babichfxAuthor
Inspiring
June 9, 2022

Didnt know about idle hook, honestly...

Thank you! Diged out, learned a lot!