[macOS / Compiler Fix] Alter offset for Mouse Buttons

Fix the mouse buttons code and alter how the mouseButton check works
This commit is contained in:
Jesse Mitchell 2024-10-16 18:24:22 -05:00 committed by GitHub
parent 35fea91268
commit 11e9d0f9ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1140,9 +1140,9 @@ void CL_KeyEvent(int key, qboolean down, unsigned time)
if (key >= K_MOUSE1 && key <= K_MOUSE5) {
if (down) {
cl.mouseButtons |= (1 << (key + (256 - K_MOUSE1)));
cl.mouseButtons |= (1 << (key - K_MOUSE1));
} else {
cl.mouseButtons &= ~(1 << (key + (256 - K_MOUSE1)));
cl.mouseButtons &= ~(1 << (key - K_MOUSE1));
}
if (in_guimouse) {