mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
[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:
parent
35fea91268
commit
11e9d0f9ba
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue