diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-16 04:18:39 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-16 04:19:54 +0100 |
commit | 8ea04000bfa98798a0283bcf80ea136ea8b4dd42 (patch) | |
tree | 34637967d90c1fa975d2acacdcdfb654778667f4 /include/mgl/window/mouse_button.h | |
parent | 61c7efc6dd2a036b5d14aa223d06a18cb7d1388e (diff) |
Window: add function to get the current mouse button state
Diffstat (limited to 'include/mgl/window/mouse_button.h')
-rw-r--r-- | include/mgl/window/mouse_button.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mgl/window/mouse_button.h b/include/mgl/window/mouse_button.h new file mode 100644 index 0000000..fccf0a7 --- /dev/null +++ b/include/mgl/window/mouse_button.h @@ -0,0 +1,16 @@ +#ifndef _MGL_MOUSE_BUTTON_H_ +#define _MGL_MOUSE_BUTTON_H_ + +typedef enum { + MGL_BUTTON_UNKNOWN, + MGL_BUTTON_LEFT, + MGL_BUTTON_RIGHT, + MGL_BUTTON_MIDDLE, + MGL_BUTTON_XBUTTON1, + MGL_BUTTON_XBUTTON2, + + /* This should always be the last mouse button */ + __MGL_NUM_MOUSE_BUTTONS__ +} mgl_mouse_button; + +#endif /* _MGL_MOUSE_BUTTON_H_ */ |