D
D
deadvip2012-08-20 20:53:47
Programming
deadvip, 2012-08-20 20:53:47

Intercepting multimedia keys in directX/openGL

Actually there is a keyboard with multimedia (additional) keys. The task is to perform certain actions when they are pressed, and it is important that this works in directX / openGL applications. I tried the iKeyWorks and Mkey programs - it suits, but it does not work in directX / openGL. Is such an interception even possible?

UPD: It turns out that it didn't work because the directX/openGL application was launched with admin rights. In this case, the program for "catching" events must also be run with admin rights.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Akulovich, 2012-08-21
@AterCattus

In GLUT, you can hang handlers on glutKeyboardFunc and glutSpecialFunc. See what comes to callbac'i when you press the multimedia keys. But in any case, these will be just numeric codes, without reference to a real keyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question