Welcome to %s forums

BrainModular Users Forum

Login Register

KeyUp / KeyDown callback in SDK

Tell us what you'd like Usine to do
Post Reply
sm_jamieson
Member
Posts: 559
Contact:

Unread post by sm_jamieson » 14 Feb 2016, 20:12

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

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 08 Mar 2016, 11:50

good suggestion.
not so easy to implement without slowing down all keyboard management but I'll try to find a solution.
senso++++

sm_jamieson
Member
Posts: 559
Contact:

Unread post by sm_jamieson » 08 Mar 2016, 14:10

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.

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 09 Mar 2016, 09:33

Windows hook is not cool, especially if you plan to compile your modules on MAC...

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests