Fix compilation bug
This commit is contained in:
parent
ea6b535a40
commit
a453914653
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue