#65 Windows special keys added (ctrl, shift and alt)

closed
nobody
Patch (5)
5
2010-01-04
2009-08-19
skaldi
No

I am working on my own 3D Engine and i use FreeGlut for the window, key, mouse, ... management.

But the fact that alt, control and shift keys may only be queried when they are pressed along with an other key, is no option for me.
I have uploaded the patched freeglut_main.c file (changed file from rc 2.6).

Perhaps it is an good idea to only implement this feature with a setOption flag, so that the original Glut functionality only differs on request.

To make my patch work, the patch which has been committed in Feature Request ID: 2824176 (X11 special keys added) has to be applied first.

I hope those keys will be implented in the next stable release for all meaningful platforms.

Happy Coding,

skaldi

Discussion

  • skaldi
    skaldi
    2009-08-19

    patched freeglut_main.c

     
    Attachments
  • skaldi
    skaldi
    2009-08-19

    By the the changes may be found on top of the LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
    LPARAM lParam ) function.

     
  • John F. Fay
    John F. Fay
    2010-01-04

    Implemented in SVN change [868] on 1/3/10

     
  • John F. Fay
    John F. Fay
    2010-01-04

    • status: open --> closed