# Get absolute mouse button?

**URL:** <https://discourse.glfw.org/t/get-absolute-mouse-button/1810>\
**Category:** support\
**Created:** [April 2, 2021, 4:45pm UTC](https://discourse.glfw.org/t/get-absolute-mouse-button/1810 "2021-04-02T16:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ltqsoft](https://avatars.discourse-cdn.com/v4/letter/l/9e8a1a/32.png) [@ltqsoft](https://discourse.glfw.org/u/ltqsoft)\
**Post date:** [April 2, 2021, 4:45pm UTC](https://discourse.glfw.org/t/get-absolute-mouse-button/1810/1 "2021-04-02T16:45:39Z")

</div>

Some users prefer right-click select so they swap left and right button functionality in system setting. Unfortunately GLFW doesn’t know about this, thus when calling glfwGetMouseButton(window, GLFW\_MOUSE\_BUTTON\_LEFT) only returns GLFW\_PRESS when right-clicking. Is there a way to use absolute mouse button? A function which returns GLFW\_TRUE when user swap the buttons maybe?  
Sorry my English is poor so I didn’t get the right keyword for googling.

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 2, 2021, 5:49pm UTC](https://discourse.glfw.org/t/get-absolute-mouse-button/1810/2 "2021-04-02T17:49:57Z")

</div>

Hi @ltqsoft,

Welcome to the GLFW forums!

There’s no functionality for this in GLFW.

You could add a way for users to swap the buttons in your application if they need this?

Cheers,

Doug.
