Fix compilation bug

This commit is contained in:
Bad Diode 2022-03-05 20:02:47 +01:00
parent ea6b535a40
commit a453914653
1 changed files with 4 additions and 4 deletions

View File

@ -112,16 +112,16 @@ poll_mouse(void) {
switch (mouse_event.code) { switch (mouse_event.code) {
case BTN_LEFT: { case BTN_LEFT: {
if (mouse_event.value == 1) { if (mouse_event.value == 1) {
in.mouse.buttons |= 0x01 in.mouse.buttons |= 0x01;
} else { } else {
in.mouse.buttons &= ~0x01 in.mouse.buttons &= ~0x01;
} }
} break; } break;
case BTN_RIGHT: { case BTN_RIGHT: {
if (mouse_event.value == 1) { if (mouse_event.value == 1) {
in.mouse.buttons |= 0x10 in.mouse.buttons |= 0x10;
} else { } else {
in.mouse.buttons &= ~0x10 in.mouse.buttons &= ~0x10;
} }
} break; } break;
default: break; default: break;