GLFW now has an input mode which allows an unlimited number of mouse buttons to be reported by the mouse buttton callback, rather than just the associated mouse button tokens. This allows using mouse buttons with values over 8. For compatibility with older versions, the GLFW_UNLIMITED_MOUSE_BUTTONS input mode needs to be set to make use of this.