Page 1 of 1

Posted: 14 Feb 2016, 20:12
by sm_jamieson
Please can we have keyboard event (keyup / keydown) callback in the SDK.

At the moment you can only get modifier states with the mouse callbacks, or for Windows, use GetAsyncKeyState or Global keyboard hooks, but none of these methods are ideal.

This thead is relevant:
http://www.sensomusic.org/forums/viewtopic.php?id=5301

Posted: 08 Mar 2016, 11:50
by senso
good suggestion.
not so easy to implement without slowing down all keyboard management but I'll try to find a solution.
senso++++

Posted: 08 Mar 2016, 14:10
by sm_jamieson
senso wrote:good suggestion.
not so easy to implement without slowing down all keyboard management but I'll try to find a solution.
senso++++
It could be a global setting that the user can choose (there are a few others simlar - can't think now).
Then the user could choose whether to accept to keyboard management slowdown. Downside is that
modules using the new interface would not work properly unless the global setting was on.
The way I do it now is with a Windows global keyboard hook which is not cool !

Thanks,
Simon.

Posted: 09 Mar 2016, 09:33
by senso
Windows hook is not cool, especially if you plan to compile your modules on MAC...