When using an external mouse, the game does not detect the side buttons of a mouse.
In this video I am showing you that the side buttons aren't detected by the game (but is by the OS).
Potential workaround (credit to LIGHTLEADER): If your mouse has on-board memory, you can customise the side buttons to act as the key you want.
Linked issues
is duplicated by 3
Attachments
Comments 8

To @CookieCft and others I found a work around for this issue, since I am using razer mice I can change mouse button functions in razer's mice customisation app. So, I assigned 2 of the keyboard buttons (eg:- 9 and 8) to each side buttons and now it registers as 9 and 8 for hotbar slot but technically now I am able to use both of the side mouse buttons. So I don't know how it is for Logitech and others check in YouTube how to assign keyboard keys to your specific mouse . Hopefully this helps . Doesn't mean that issue is completely resolved it is just a work around because it is supposed to work without all of these done.
To @CookieCft and others I found a work around for this issue, since I am using razer mice I can change mouse button functions in razer's mice customisation app. So, I assigned 2 of the keyboard buttons (eg:- 9 and 8) to each side buttons and now it registers as 9 and 8 for hotbar slot but technically now I am able to use both of the side mouse buttons. So I don't know how it is for Logitech and others check in YouTube how to assign keyboard keys to your specific mouse . Hopefully this helps . Doesn't mean that issue is completely resolved it is just a work around because it is supposed to work without all of these done.
@LIGHTLEADER I’m using the Glorious Model D Wireless which has a software that can change the side buttons. However, when I change them to a keystroke MCBE still does not recognize the keys. This is probably an issue with the mouse, as I have Windows 10 edition and it doesn’t recognize the reprogrammed keys either. It did recognize the side buttons as button 5 and 6 though.
@LIGHTLEADER I’m using the Glorious Model D Wireless which has a software that can change the side buttons. However, when I change them to a keystroke MCBE still does not recognize the keys. This is probably an issue with the mouse, as I have Windows 10 edition and it doesn’t recognize the reprogrammed keys either. It did recognize the side buttons as button 5 and 6 though.