• Advertisement
Sign in to follow this  

Raw Input and GLFW

This topic is 1259 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I am currently working on a little game engine for learning purposes. I am using OpenGL for rendering and GLFW for the windowing system. Now I would like to use Raw Input as my input gathering system, because this one is the fastest way on Windows as I've heart. Unfortunately I don't know how, as GLFW creates the window and I can't set a WndProc callback function.

 

So my question is: Is it possible to use Raw Input when I let GLFW(or any other similar library) create the OpenGL context?

Share this post


Link to post
Share on other sites
Advertisement

You can always modify the source from GLFW. The wndproc is in the folder src/win32_window.c where you can add your raw input if you need to.

 

Edit:

There is the function glfwGetWin32Window. With this function you get the HWND. So you could subclass the windowproc from GLFW but I would not recommend it.

Edited by megamoscha

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement