# How determine how many buttons have the mouse

**URL:** <https://discourse.glfw.org/t/how-determine-how-many-buttons-have-the-mouse/110>\
**Category:** support\
**Created:** [December 22, 2014, 7:48pm UTC](https://discourse.glfw.org/t/how-determine-how-many-buttons-have-the-mouse/110 "2014-12-22T19:48:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [December 22, 2014, 7:48pm UTC](https://discourse.glfw.org/t/how-determine-how-many-buttons-have-the-mouse/110/1 "2014-12-22T19:48:17Z")

</div>

**[divxdede](https://sourceforge.net/u/divxdede/)** wrote on [Monday, December 22, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/c2d6b8b7/#dfb5):

Hi,

How can i determine how many buttons have the mouse ?  
The GLFWMouseButtonCallback can handle 8 buttons at maximum (GLFW\_MOUSE\_BUTTON\_8).

But i would know in advance how many the current mouse have before to receive an events.
