sgl
diff include/sgl.h @ 7:edbfc96fe80d
glut wsys thingy and stuff...
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 14 May 2011 08:26:10 +0300 |
parents | 0cb438c86b98 |
children | 9841c90ec769 |
line diff
1.1 --- a/include/sgl.h Fri May 13 09:44:21 2011 +0300 1.2 +++ b/include/sgl.h Sat May 14 08:26:10 2011 +0300 1.3 @@ -37,6 +37,19 @@ 1.4 SGL_RIGHT_BUTTON 1.5 }; 1.6 1.7 +/* these values happen to coincide with X11 keysyms */ 1.8 +#define SGL_KEY_LSHIFT 0xffe1 1.9 +#define SGL_KEY_RSHIFT 0xffe2 1.10 +#define SGL_KEY_LCONTROL 0xffe3 1.11 +#define SGL_KEY_RCONTROL 0xffe4 1.12 +#define SGL_KEY_LALT 0xffe9 1.13 +#define SGL_KEY_RALT 0xffea 1.14 + 1.15 +/* for the sgl_modifiers bitmask */ 1.16 +#define SGL_MOD_SHIFT 1 1.17 +#define SGL_MOD_CONTROL 2 1.18 +#define SGL_MOD_ALT 4 1.19 + 1.20 int sgl_init(void); 1.21 void sgl_quit(void); 1.22 1.23 @@ -52,6 +65,8 @@ 1.24 void sgl_redisplay(void); 1.25 void sgl_swap_buffers(void); 1.26 1.27 +int sgl_modifiers(void); 1.28 + 1.29 int sgl_process_events(void); 1.30 void sgl_event_loop(void); 1.31